kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* get_user() and put_user() missing in syscall list
@ 2014-06-02  5:59 Dipanjan Das
  2014-06-02  8:13 ` Varka Bhadram
  0 siblings, 1 reply; 5+ messages in thread
From: Dipanjan Das @ 2014-06-02  5:59 UTC (permalink / raw)
  To: kernelnewbies

Hi,

Here's an exhaustive list
<http://man7.org/linux/man-pages/man2/syscalls.2.html> of Linux syscall,
but I can't find get_user() and put_user() API. Why is it so? What am I
missing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140602/4fb9775f/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* get_user() and put_user() missing in syscall list
  2014-06-02  5:59 get_user() and put_user() missing in syscall list Dipanjan Das
@ 2014-06-02  8:13 ` Varka Bhadram
  2014-06-02  8:19   ` Dipanjan Das
  0 siblings, 1 reply; 5+ messages in thread
From: Varka Bhadram @ 2014-06-02  8:13 UTC (permalink / raw)
  To: kernelnewbies

These two are not the system calls. they are the Kernel API's to transfer the
data from user address space to the kernel address space.

please see:
http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239
<http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239>
http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L143
<http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L143>

Regards,
Varka Bhadram

On June 2, 2014 at 11:29 AM Dipanjan Das <mail.dipanjan.das@gmail.com> wrote:
<http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239>

> 
>  Hi,
> 
>  Here's an exhaustive list
> <http://man7.org/linux/man-pages/man2/syscalls.2.html> of Linux syscall, but I
> can't find get_user() and put_user() API. Why is it so? What am I missing?
>  _______________________________________________
>  Kernelnewbies mailing list
>  Kernelnewbies at kernelnewbies.org
>  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 

-------------------------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140602/9bebffe2/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* get_user() and put_user() missing in syscall list
  2014-06-02  8:13 ` Varka Bhadram
@ 2014-06-02  8:19   ` Dipanjan Das
  2014-06-02  8:28     ` Sudip Mukherjee
  2014-06-02  8:37     ` Varka Bhadram
  0 siblings, 2 replies; 5+ messages in thread
From: Dipanjan Das @ 2014-06-02  8:19 UTC (permalink / raw)
  To: kernelnewbies

I am new to Linux kernel stuffs. How are Kernel API and syscalls differ
from each other?


On 2 June 2014 13:43, Varka Bhadram <varkab@cdac.in> wrote:

>   These two are not the system calls. they are the Kernel API's to
> transfer the data from user address space to the kernel address space.
>
>  please see:
> http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239
>  http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L143
>
>  Regards,
>  Varka Bhadram
>
> *MailScanner has detected a possible fraud attempt from
> "lxr.free-electrons.com" claiming to be* On June 2, 2014 at 11:29 AM
> Dipanjan Das <mail.dipanjan.das@gmail.com> wrote:
> <http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239>
>
>
>  Hi,
>
>  Here's an exhaustive list
> <http://man7.org/linux/man-pages/man2/syscalls.2.html> of Linux syscall,
> but I can't find get_user() and put_user() API. Why is it so? What am I
> missing?
>  _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
>
>
> -------------------------------------------------------------------------------------------------------------------------------
>
> [ C-DAC is on Social-Media too. Kindly follow us at:
> Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]
>
> This e-mail is for the sole use of the intended recipient(s) and may
> contain confidential and privileged information. If you are not the
> intended recipient, please contact the sender by reply e-mail and destroy
> all copies and the original message. Any unauthorized review, use,
> disclosure, dissemination, forwarding, printing or copying of this email
> is strictly prohibited and appropriate legal action will be taken.
> -------------------------------------------------------------------------------------------------------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140602/88a76982/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* get_user() and put_user() missing in syscall list
  2014-06-02  8:19   ` Dipanjan Das
@ 2014-06-02  8:28     ` Sudip Mukherjee
  2014-06-02  8:37     ` Varka Bhadram
  1 sibling, 0 replies; 5+ messages in thread
From: Sudip Mukherjee @ 2014-06-02  8:28 UTC (permalink / raw)
  To: kernelnewbies

On Mon, Jun 2, 2014 at 1:49 PM, Dipanjan Das <mail.dipanjan.das@gmail.com>
wrote:

>
> I am new to Linux kernel stuffs. How are Kernel API and syscalls differ
> from each other?
>

syscalls are system calls which which will be used by your application in
user space. syscalls table will map the userspace syatem call with the
related function in kernel space.
kernel API are the functions which can only be used in kernel space and
they do not have any existence in userspace.

Regards
Sudip
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140602/85a97a03/attachment-0001.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* get_user() and put_user() missing in syscall list
  2014-06-02  8:19   ` Dipanjan Das
  2014-06-02  8:28     ` Sudip Mukherjee
@ 2014-06-02  8:37     ` Varka Bhadram
  1 sibling, 0 replies; 5+ messages in thread
From: Varka Bhadram @ 2014-06-02  8:37 UTC (permalink / raw)
  To: kernelnewbies

http://stackoverflow.com/questions/20172111/difference-between-system-api-and-system-call-api
http://stackoverflow.com/questions/17219898/what-is-the-difference-between-linux-kernel-api-system-calls-system-inter

These two links will give the diffrence b/w them...


On June 2, 2014 at 1:49 PM Dipanjan Das <mail.dipanjan.das@gmail.com> wrote:

> 
>  I am new to Linux kernel stuffs. How are Kernel API and syscalls differ from
> each other?
> 
> 
>  On 2 June 2014 13:43, Varka Bhadram <varkab at cdac.in <mailto:varkab@cdac.in> >
> wrote:
>    > >    These two are not the system calls. they are the Kernel API's to
>    > > transfer the data from user address space to the kernel address space.
> > 
> >    please see:
> > http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239
> > <http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239>
> >    http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L143
> > <http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L143>
> > 
> >    Regards,
> >    Varka Bhadram
> > 
> >    MailScanner has detected a possible fraud attempt from
> > "lxr.free-electrons.com" claiming to be On June 2, 2014 at 11:29 AM Dipanjan
> > Das <mail.dipanjan.das@gmail.com> wrote:
> > <http://lxr.free-electrons.com/source/arch/x86/include/asm/uaccess.h#L239>
> > 
> >     > > > 
> > >     Hi,
> > > 
> > >     Here's an exhaustive list
> > > <http://man7.org/linux/man-pages/man2/syscalls.2.html> of Linux syscall,
> > > but I can't find get_user() and put_user() API. Why is it so? What am I
> > > missing?
> > >     _______________________________________________
> > >     Kernelnewbies mailing list
> > >     Kernelnewbies at kernelnewbies.org
> > > <mailto:Kernelnewbies@kernelnewbies.org>
> > >     http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> > > <http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies>
> > > 
> > >    > > 
> > 
> > 
> >   -------------------------------------------------------------------------------------------------------------------------------
> >    [ C-DAC is on Social-Media too. Kindly follow us at:
> >    Facebook: https://www.facebook.com/CDACINDIA
> > <https://www.facebook.com/CDACINDIA> & Twitter: @cdacindia ]
> > 
> >    This e-mail is for the sole use of the intended recipient(s) and may
> >    contain confidential and privileged information. If you are not the
> >    intended recipient, please contact the sender by reply e-mail and destroy
> >    all copies and the original message. Any unauthorized review, use,
> >    disclosure, dissemination, forwarding, printing or copying of this email
> >    is strictly prohibited and appropriate legal action will be taken.
> > 
> >   -------------------------------------------------------------------------------------------------------------------------------
> >  >  _______________________________________________
>  Kernelnewbies mailing list
>  Kernelnewbies at kernelnewbies.org
>  http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 

-------------------------------------------------------------------------------------------------------------------------------
[ C-DAC is on Social-Media too. Kindly follow us at:
Facebook: https://www.facebook.com/CDACINDIA & Twitter: @cdacindia ]

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140602/0b8382e0/attachment.html 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-06-02  8:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02  5:59 get_user() and put_user() missing in syscall list Dipanjan Das
2014-06-02  8:13 ` Varka Bhadram
2014-06-02  8:19   ` Dipanjan Das
2014-06-02  8:28     ` Sudip Mukherjee
2014-06-02  8:37     ` Varka Bhadram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).