函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-27 07:09:21
Last Modify:2022-05-21 09:47:42 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:restricted_pointer

函数原型:static __attribute__((__noinline__)) char *restricted_pointer(char *buf, char *end, const void *ptr, struct printf_spec spec)

返回类型:char

参数:

类型参数名称
char *buf
char *end
const void *ptr
struct printf_specspec
820  :kptr_restrict恒等于0
822  返回:ptr_to_id(buf, end, ptr, spec)
823  :kptr_restrict恒等于1
831  如果 width of output field 恒等于负1则 width of output field 等于2乘ptr的长度
845  cred等于current_cred - Access the current task's subjective credentials* Access the subjective credentials of the current task. RCU-safe,* since nobody else can modify it.()
846  如果非has_capability_noaudit(当前进程, Allow configuring the kernel's syslog (printk behaviour) )或非uid_eq(有效uid, 进程uid)或非gid_eq(有效gid, 进程gid)则ptr = NULL
850  退出
852  :kptr_restrict恒等于2
853  默认
855  ptr = NULL
856  退出
859  返回:pointer_string(buf, end, ptr, spec)
调用者
名称描述
pointerShow a '%p' thing. A kernel extension is that the '%p' is followed* by an extra set of alphanumeric characters that are extended format* specifiers.* Please update scripts/checkpatch.pl when adding/removing conversion* characters