get_user() and put_user() missing in syscall list
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?
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@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. -------------------------------------------------------------------------------------------------------------------------------
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@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. -------------------------------------------------------------------------------------------------------------------------------
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
http://stackoverflow.com/questions/20172111/difference-between-system-api-an... http://stackoverflow.com/questions/17219898/what-is-the-difference-between-l... 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@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@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@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. -------------------------------------------------------------------------------------------------------------------------------
participants (3)
-
Dipanjan Das -
Sudip Mukherjee -
Varka Bhadram