Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\vsprintf.c Create Date:2022-07-28 06:12:04
Last Modify:2022-05-21 09:47:42 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:restricted_pointer

Proto:static __attribute__((__noinline__)) char *restricted_pointer(char *buf, char *end, const void *ptr, struct printf_spec spec)

Type:char

Parameter:

TypeParameterName
char *buf
char *end
const void *ptr
struct printf_specspec
820  Case kptr_restrict == 0
822  Return ptr_to_id(buf, end, ptr, spec)
823  Case kptr_restrict == 1
831  If width of output field == -1 Then width of output field = 2 * size of 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  If Not has_capability_noaudit(current process, Allow configuring the kernel's syslog (printk behaviour) ) || Not uid_eq( effective UID of the task , real UID of the task ) || Not gid_eq( effective GID of the task , real GID of the task ) Then ptr = NULL
850  Break
852  Case kptr_restrict == 2
853  Default
855  ptr = NULL
856  Break
859  Return pointer_string(buf, end, ptr, spec)
Caller
NameDescribe
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