Re: sys_init_module system call
From: runcoderen
Date: Fri Aug 20 2010 - 18:50:48 EST
hi Randy:
yes, it does!
Thanks a lot!
runcoderen
å 2010-08-20äç 15:32 -0700ïRandy Dunlapåéï
> On Sat, 21 Aug 2010 06:18:04 +0800 runcoderen wrote:
>
> > hi all
> > I find sys_init_module system call in kernel/module.c file.
> > but it did not find any.
> > the source code version is linux-2.6.35
> >
> > does the kernel have changed?
> >
> > the book I am reading is LDD 3rd edition
>
> 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=1a94bc34768e463a93cb3751819709ab0ea80a01
>
>
> ---
> ~Randy
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
--
/****************************************
http://runcoderen.wordpress.com/
****************************************/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/