Re: sys_init_module system call

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy Dunlap
Date: Friday, August 20, 2010 - 3:32 pm

On Sat, 21 Aug 2010 06:18:04 +0800 runcoderen wrote:


You won't find a function in kernel/module.c that looks like it has
the name "sys_init_module".  Instead, the function is defined by using
a macro, and it looks like this:

/* This is where the real work happens */
SYSCALL_DEFINE3(init_module, void __user *, umod,
		unsigned long, len, const char __user *, uargs)
{



The use of SYSCALL_DEFINEx(func_name, args) is a fairly recent change
(well, January, 2009) that may be the reason why you think that there
has been a change.  See
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1a94bc3476...


---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] mmc: make number of mmcblk minors configurable, Olof Johansson, (Tue Aug 17, 9:13 pm)
Re: [PATCH] mmc: make number of mmcblk minors configurable, Olof Johansson, (Wed Aug 18, 8:22 pm)
sys_init_module system call, runcoderen, (Fri Aug 20, 3:18 pm)
Re: sys_init_module system call, Randy Dunlap, (Fri Aug 20, 3:32 pm)
Re: sys_init_module system call, runcoderen, (Fri Aug 20, 3:50 pm)