Re: what is a wrapper function?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/2/06, Avishay Traeger <atraeger@xxxxxxxxxxxxx> wrote:
> A wrapper function is a function whose primary purpose is to call
> another function.
[snip]
> - you want to do something simple before and/or after the function call
> (such as checking arguments)
>
The way copy_to_user() (and copy_from_user() of course) wraps
__copy_to_user() is a nice example of this :
http://sosdg.org/~coywolf/lxr/source/arch/i386/lib/usercopy.c#L726

--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post  http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please      http://www.expita.com/nomime.html

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux