函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:bm_entry_write

函数原型:static ssize_t bm_entry_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
654  e等于s or device private pointer
655  res等于Set status of entry/binfmt_misc:* '1' enables, '0' disables and '-1' clears entry/binfmt_misc
658  :res恒等于1
660  lear_bit - Clears a bit in memory*@nr: Bit to clear*@addr: Address to start counting from* This is a relaxed atomic operation (no implied memory barriers).
661  退出
662  :res恒等于2
664  设置内存位
665  退出
666  :res恒等于3
668  root等于s_root
669  inode_lock(获得目录项的索引节点)
671  如果非链表为空kill_node(e)
674  inode_unlock(获得目录项的索引节点)
675  退出
676  默认
677  返回:res
680  返回:count