函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cn_print_exe_file

函数原型:static int cn_print_exe_file(struct core_name *cn)

返回类型:int

参数:

类型参数名称
struct core_name *cn
162  exe_file等于get_mm_exe_file - acquire a reference to the mm's executable file* Returns %NULL if mm has no associated executable file.* User must release file via fput().
163  如果非exe_file则返回:cn_esc_printf(cn, "%s (path unknown)", comm)
166  pathbuf等于开辟内存
167  如果非pathbuf
168  ret等于负ENOMEM
169  转到:put_exe_file
172  path等于file_path(exe_file, pathbuf, # chars in a path name including nul )
173  如果是错误
174  ret等于错误
175  转到:free_buf
178  ret等于cn_esc_printf(cn, "%s", path)
180  free_buf :
181  释放内存
182  put_exe_file :
183  fput(exe_file)
184  返回:ret
调用者
名称描述
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.