[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] struct task




On Fri, 26 Nov 1999, Sojan James wrote:

> Hi,
> 	Copying from user to kernel space and vice-versa is carried out
> via the memcpy_frmfs and memcpy_tofs functions. 
> 	The "fs" in the name is because on intel platforms, the user
> space is accessed through the fs segment register.
> 	The functions are different on linux 2.1 and above.....look it up
> in "Linux Device Drivers" Pg. 61, 391
> 
> Regards,
> 
> Sojan.
> 

Agreed. But that's not the point i was trying to ask. All such functions
(those who does kernel<->user copying), needs the base address
of a varible intended for IO in user space. In linux, driver entry points
such as read,write.....etc. gets this as an argument(Unlike in Unix) and
i failed to understand from where they come. I mean, how
the kernel gets this base address and pass it to driver functions. 

Anyone please, any hints on this.....

sudheer


--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.