Re: converting char* to type - "long"

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

 



On Fri, 2006-03-17 at 11:16 -0800, Arun Srinivasan wrote:
> I am passing a "char*" which is an string that represents an address
> of type "long" from user space to kernel space. So in kernel space how
> can I convert this string into the actual type "long" ? I am assuming
> there is no (long)atoi() in kernel. 

there is simple_strtoull 



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