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:ptr_to_id

Proto:static char *ptr_to_id(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
793  str = If size of ptr == 8 Then "(____ptrval____)" Else "(ptrval)"
798  If Value for the false possibility is greater at compile time(Make pointers available for printing early in the boot sequence. ) Then
799  hashval = hash_long((unsignedlong)ptr, 32)
800  Return pointer_string(buf, end, (constvoid * )hashval, spec)
803  ret = Maps a pointer to a 32 bit unique identifier.
804  If ret Then
805  width of output field = 2 * size of ptr
807  Return Be careful: error messages must fit into the given buffer.
810  Return pointer_string(buf, end, (constvoid * )hashval, spec)
Caller
NameDescribe
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