函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\lockdown\lockdown.c Create Date:2022-07-27 21:51:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lockdown_read

函数原型:static ssize_t lockdown_read(struct file *filp, char __user *buf, size_t count, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
struct file *filp
char __user *buf
size_tcount
loff_t *ppos
121  offset等于0
123 i小于ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(lockdown_levels)循环
124  level等于lockdown_levels[i]
126  如果lockdown_reasons[level]则
129  如果kernel_locked_down恒等于leveloffset加等于输出格式化串
131  否则offset加等于输出格式化串
137  如果offset大于0则temp[offset - 1]等于'\n'
140  返回:simple_read_from_buffer(buf, count, ppos, temp, strlen - Find the length of a string*@s: The string to be sized)