函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:load_em86

函数原型:static int load_em86(struct linux_binprm *bprm)

返回类型:int

参数:

类型参数名称
struct linux_binprm *bprm
35  elf_ex等于*buf
37  如果内存比较不等于0则返回:负ENOEXEC
41  如果e_type不等于ET_EXECe_type不等于ET_DYN或非e_machine恒等于EM_386e_machine恒等于Perhaps disused 的值或非mmap
44  返回:负ENOEXEC
48  如果interp_flags按位与BINPRM_FLAGS_PATH_INACCESSIBLE则返回:负ENOENT
51  allow_write_access(file)
52  fput(file)
53  file = NULL
58  interp等于EM86_INTERP
59  i_name等于EM86_I_NAME
60  i_arg = NULL
70  Arguments are '\0' separated strings found at the location bprm->p* points to; chop off the first by relocating brpm->p to right after* the first '\0' encountered.
71  retval等于Like copy_strings, but get argv and its values from kernel memory.
72  如果retval小于0则返回:retval
73  argc自加
74  如果i_arg
75  retval等于Like copy_strings, but get argv and its values from kernel memory.
76  如果retval小于0则返回:retval
77  argc自加
79  retval等于Like copy_strings, but get argv and its values from kernel memory.
80  如果retval小于0则返回:retval
81  argc自加
88  file等于open_exec(interp)
89  如果是错误则返回:错误
92  file等于file
94  retval等于Fill the binprm structure from the inode.* Check permissions, then read the first BINPRM_BUF_SIZE bytes* This may be called multiple times for binary chains (scripts for example).
95  如果retval小于0则返回:retval
98  返回:ycle the list of binary formats handler, until one recognizes the image