Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-28 20:30:52
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:The maximal length of core_pattern is also specified in sysctl.c

Proto:static int expand_corename(struct core_name *cn, int size)

Type:int

Parameter:

TypeParameterName
struct core_name *cn
intsize
69  corename = krealloc - reallocate memory. The contents will remain unchanged.*@p: object to reallocate memory for.*@new_size: how many bytes of memory are required.*@flags: the type of memory to allocate.* The contents of the object pointed to are preserved up to the
71  If Not corename Then Return -ENOMEM
74  If size > core_name_size Then core_name_size = size
77  size = ksize - get the actual amount of memory allocated for a given object*@objp: Pointer to the object* kmalloc may internally round up allocations and return more memory* than requested. ksize() can be used to determine the actual amount of* memory allocated
78  corename = corename
79  Return 0
Caller
NameDescribe
cn_vprintf
format_corenamermat_corename will inspect the pattern parameter, and output a* name into corename, which must have space for at least* CORENAME_MAX_SIZE bytes plus one byte for the zero terminator.