Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\lockdown\lockdown.c Create Date:2022-07-28 19:55:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:lockdown_read

Proto:static ssize_t lockdown_read(struct file *filp, char __user *buf, size_t count, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
char __user *buf
size_tcount
loff_t *ppos
121  offset = 0
123  When i < ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(lockdown_levels) cycle
124  level = lockdown_levels[i]
126  If lockdown_reasons[level] Then
129  If kernel_locked_down == level Then offset += sprintf(temp + offset, "[%s] ", label)
131  Else offset += sprintf(temp + offset, "%s ", label)
137  If offset > 0 Then temp[offset - 1] = '\n'
140  Return simple_read_from_buffer(buf, count, ppos, temp, strlen - Find the length of a string*@s: The string to be sized)