Re: PCI Driver

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

 



On Fri, 05 Jul 2002 10:27:31 +0400
Kirill Messel <kirill.messel@mtu-net.ru> wrote:

KM> Actually  copy_to_user() and copy_from_user() is the 
KM> prototype get_user() and put_user?

	{get|put}_user are used to transfer single values to/from user-space of
1,2,4,8 bytes (the last one is 64bit arch) (check __put_user_size macro in
include/asm/uaccess.h).

	They should be used instead of copy_{to|from}_user when transfering the
above values for speed gain ({put|get}_user are much faster).

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