Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:SYSCALL_DEFINE3

Proto:SYSCALL_DEFINE3(finit_module, int, fd, const char __user *, uargs, int, flags)

Type:

Parameter:Nothing

4001  struct load_info info = {}
4006  err = may_init_module()
4007  If err Then Return err
4010  pr_debug("finit_module: fd=%d, uargs=%p, flags=%i\n", fd, uargs, prefix, newline flags )
4012  If prefix, newline flags & ~(Flags for sys_finit_module: | MODULE_INIT_IGNORE_VERMAGIC) Then Return -EINVAL
4016  err = kernel_read_file_from_fd(fd, & hdr, & size, INT_MAX, READING_MODULE)
4018  If err Then Return err
4020  hdr = hdr
4021  len = size
4023  Return Allocate and load the module: note that size of section 0 is alwayszero, and we rely on this for optional sections.