函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ptr_to_id

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

返回类型:char

参数:

类型参数名称
char *buf
char *end
const void *ptr
struct printf_specspec
793  str等于如果ptr的长度恒等于8则"(____ptrval____)"否则"(ptrval)"
798  如果此条件成立可能性小(为编译器优化)(Make pointers available for printing early in the boot sequence. )则
799  hashval等于hash_long((unsignedlong)ptr, 32)
800  返回:pointer_string(buf, end, (constvoid * )hashval, spec)
803  ret等于Maps a pointer to a 32 bit unique identifier.
804  如果ret
805  width of output field 等于2乘ptr的长度
807  返回:Be careful: error messages must fit into the given buffer.
810  返回:pointer_string(buf, end, (constvoid * )hashval, spec)
调用者
名称描述
restricted_pointer
clock
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