Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__register_binfmt

Proto:void __register_binfmt(struct linux_binfmt *fmt, int insert)

Type:void

Parameter:

TypeParameterName
struct linux_binfmt *fmt
intinsert
82  BUG_ON(!fmt)
83  If WARN_ON(!load_binary) Then Return
85  write_lock( & binfmt_lock)
86  If insert Then list_add - add a new entry*@new: new entry to be added*@head: list head to add it after* Insert a new entry after the specified head.* This is good for implementing stacks. Else list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
88  write_unlock( & binfmt_lock)
Caller
NameDescribe
register_binfmtRegistration of default binfmt handlers
insert_binfmtSame as above, but adds a new binfmt at the top of the list