Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Set status of entry/binfmt_misc:* '1' enables, '0' disables and '-1' clears entry/binfmt_misc

Proto:static int parse_command(const char __user *buffer, size_t count)

Type:int

Parameter:

TypeParameterName
const char __user *buffer
size_tcount
530  If count > 3 Then Return -EINVAL
532  If copy_from_user(s, buffer, count) Then Return -EFAULT
534  If Not count Then Return 0
536  If s[count - 1] == '\n' Then count--
538  If count == 1 && s[0] == '0' Then Return 1
540  If count == 1 && s[0] == '1' Then Return 2
542  If count == 2 && s[0] == '-' && s[1] == '1' Then Return 3
544  Return -EINVAL
Caller
NameDescribe
bm_entry_write
bm_status_write