Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:cn_print_exe_file

Proto:static int cn_print_exe_file(struct core_name *cn)

Type:int

Parameter:

TypeParameterName
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  If Not exe_file Then Return cn_esc_printf(cn, "%s (path unknown)", comm)
166  pathbuf = Allocation memory
167  If Not pathbuf Then
168  ret = -ENOMEM
169  Go to put_exe_file
172  path = file_path(exe_file, pathbuf, # chars in a path name including nul )
173  If IS_ERR(path) Then
174  ret = PTR_ERR(path)
175  Go to free_buf
178  ret = cn_esc_printf(cn, "%s", path)
180  free_buf :
181  kfree(pathbuf)
182  put_exe_file :
183  fput(exe_file)
184  Return ret
Caller
NameDescribe
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.