RE: getting rid of from_user flag

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

 



From: Greg KH [mailto:greg@xxxxxxxxx]
Sent: Sat 10/1/2005 6:16 AM
To: Kaustav Majumdar (WT01 - Semiconductors & Consumer Electronics)
Cc: kernelnewbies@xxxxxxxxxxxx
Subject: Re: getting rid of from_user flag



On Fri, Sep 30, 2005 at 05:41:47PM +0530, kaustav.majumdar@xxxxxxxxx wrote:
> Hi all,
> 
> I was going through the structure usb_serial_device_type in
> drivers/usb/serial/usb-serial.h... In 2.6.10 the write function
> prototype had been changed to exclude the int from_user...... so now
> how can i check for whether the data is coming from user space or
> kernel space without checking the from_user flag.

If you look further, all tty drivers lost that flag, as they all take
the data straight from kernelspace, no need to check for userspace
buffers anymore.

So you get to delete some code from your driver now...

Hope this helps,

greg k-h


 

Hi,

Thanx for the reply........... but i want to know that whether the user space data will be copied to kernel space buffer automatically or we have to do it explicitly ??? 

And if  i still want to differentiate between user space and kernel space data what are the means in this context???

Thanking u,

Kaustav Majumdar

<<winmail.dat>>


[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