函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check if we support the binfmt* if we do, return the node, else NULL* locking is done in load_misc_binary

函数原型:static Node *check_file(struct linux_binprm *bprm)

返回类型:Node

参数:

类型参数名称
struct linux_binprm *bprm
92  p等于strrchr - Find the last occurrence of a character in a string*@s: The string to be searched*@c: The character to search for
97  e等于list_entry - get the struct for this entry*@ptr: the &struct list_head pointer.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.(l, Node, list)
102  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from则继续下一循环
106  如果非st_bit - Determine whether a bit is set*@nr: bit number to test*@addr: Address to start counting from
107  如果p且非字符串比较则返回:e
109  继续下一循环
113  s等于buf offset of magic
114  如果 mask, NULL for exact match
115 j小于 size of magic/mask 循环如果s自加按位异或 magic or filename extension [j]的值按位与 mask, NULL for exact match [j]则
117  退出
118  否则
119 j小于 size of magic/mask 循环如果s自加按位异或 magic or filename extension [j]则
121  退出
123  如果j恒等于 size of magic/mask 则返回:e
126  返回:NULL
调用者
名称描述
load_misc_binaryhe loader itself