函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\binfmt_misc.c Create Date:2022-07-29 11:02:13
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:bm_status_write

函数原型:static ssize_t bm_status_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
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  :res恒等于1
789  enabled等于0
790  退出
791  :res恒等于2
793  enabled等于1
794  退出
795  :res恒等于3
797  root等于s_root
798  inode_lock(获得目录项的索引节点)
800  当非链表为空循环
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(获得目录项的索引节点)
804  退出
805  默认
806  返回:res
809  返回:count