函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__register_binfmt

函数原型:void __register_binfmt(struct linux_binfmt *fmt, int insert)

返回类型:void

参数:

类型参数名称
struct linux_binfmt *fmt
intinsert
82  BUG_ON(!fmt)
83  如果WARN_ON(!load_binary)则返回
85  write_lock( & binfmt_lock)
86  如果insert添加链表项否则添加链表项
88  write_unlock( & binfmt_lock)
调用者
名称描述
register_binfmtRegistration of default binfmt handlers
insert_binfmtSame as above, but adds a new binfmt at the top of the list