Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\binfmt_misc.c Create Date:2022-07-28 20:27:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:bm_status_write

Proto:static ssize_t bm_status_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *buffer
size_tcount
loff_t *ppos
783  res = Set status of entry/binfmt_misc:* '1' enables, '0' disables and '-1' clears entry/binfmt_misc
787  Case res == 1
789  enabled = 0
790  Break
791  Case res == 2
793  enabled = 1
794  Break
795  Case res == 3
797  root = s_root
798  inode_lock(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
800  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
801  kill_node(list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & entries, Node, list))
803  inode_unlock(d_inode - Get the actual inode of this dentry*@dentry: The dentry to query* This is the helper normal filesystems should use to get at their own inodes* in their own dentries and ignore the layering superimposed upon them.)
804  Break
805  Default
806  Return res
809  Return count