Function report |
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 activity | Download SCCT | Chinese |
Name:restricted_pointer
Proto:static __attribute__((__noinline__)) char *restricted_pointer(char *buf, char *end, const void *ptr, struct printf_spec spec)
Type:char
Parameter:
Type | Parameter | Name |
---|---|---|
char * | buf | |
char * | end | |
const void * | ptr | |
struct printf_spec | spec |
820 | Case kptr_restrict == 0 |
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) |
Name | Describe |
---|---|
pointer | Show 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 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |