Re: what is a wrapper function?

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

 



Md.Zaheeruddin Khan a écrit :
> HI ,
> I want 2 know what is a wrapper function and where is it used?

As this question is very general, it is quite hard to answer, but
Wikipédia [1] has a definition for « wrapper » :

 « A wrapper (such as a driver wrapper) is a piece of code which is
combined with another piece of code to determine how the latter code is
executed.

    The wrapper acts as an interface between its caller and the wrapped
code. This may be done for compatibility, e.g. if the wrapped code is in
a different programming language or uses different calling conventions,
for security, e.g. to prevent the calling program from executing certain
functions, to provide a level of emulation, e.g. a DirectX API which
hides the functions of the video card driver. The implication is that
the wrapped code can only be accessed via the wrapper. »

Sincerly,

Thomas

[1] http://en.wikipedia.org/wiki/Wrapper
-- 
Thomas Petazzoni
thomas.petazzoni@xxxxxxxx


--
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