函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\coredump.c Create Date:2022-07-29 11:06:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:The maximal length of core_pattern is also specified in sysctl.c

函数原型:static int expand_corename(struct core_name *cn, int size)

返回类型:int

参数:

类型参数名称
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  如果非corename则返回:负ENOMEM
74  如果size大于core_name_sizecore_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  返回:0
调用者
名称描述
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.