Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\crash_core.c Create Date:2022-07-28 11:01:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:append_elf_note

Proto:Elf64_Word *append_elf_note(Elf64_Word *buf, char *name, unsigned int type, void *data, size_t data_len)

Type:Elf64_Word

Parameter:

TypeParameterName
Elf64_Word *buf
char *name
unsigned inttype
void *data
size_tdata_len
298  note = buf
300  Name size = strlen - Find the length of a string*@s: The string to be sized + 1
301  Content size = data_len
302  Content type = type
303  buf += DIV_ROUND_UP( size of note , size of Elf_Word )
304  No 3D Now!(buf, name, Name size )
305  buf += DIV_ROUND_UP(Name size , size of Elf_Word )
306  No 3D Now!(buf, data, data_len)
307  buf += DIV_ROUND_UP(data_len, size of Elf_Word )
309  Return buf
Caller
NameDescribe
update_vmcoreinfo_note
crash_save_cpu