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_entry_write

Proto:static ssize_t bm_entry_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
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  Case 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  Break
662  Case res == 2
664  Atomically set a bit in memory
665  Break
666  Case res == 3
668  root = s_root
669  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.)
671  If Not list_empty - tests whether a list is empty*@head: the list to test. Then kill_node(e)
674  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.)
675  Break
676  Default
677  Return res
680  Return count