RE: Basic question about device driver

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

 



On Thu, 2005-02-17 at 11:35 +0530, Dhanashri Bhate wrote:
> Thanks MAndeep, got it..
> but one more question :)
> so when the kernel sees any device request it will send it to proper driver function with the adress in user area. and the buffer in kernel space, is the one we kalloc during init_module. is that right?
yep. Dhanashri can u restrict your replies to 80 chars a line....it's
difficult to read otherwise.

-mandeep
> 
> 
> > -----Original Message-----
> > From: kernelnewbies-bounce@xxxxxxxxxxxx
> > [mailto:kernelnewbies-bounce@xxxxxxxxxxxx]On Behalf Of Mandeep Sandhu
> > Sent: Thursday, February 17, 2005 10:59 AM
> > To: Dhanashri Bhate
> > Cc: kernelnewbies@xxxxxxxxxxxx
> > Subject: Re: Basic question about device driver
> > 
> > 
> > On Thu, 2005-02-17 at 10:42 +0530, Dhanashri Bhate wrote:
> > > hi,
> > > i know unix fairly well and good at C, but new to the linux 
> > environment. I'm studying device driver development(kernel 
> > space). i'm refering the linux device driver book by 
> > allessandro rubini.  which is quite good... but still i'm 
> > having some problems in thoroghly understanding the basic concepts!
> > > 
> > > someone pls answer this: how exactly a device address comes 
> > to the driver? ( which will be used by copy-to-user/copy-from-user) 
> > can you re-phrase your question? don't know what exactly you mean by
> > "device address comes to the driver"
> > 
> > copy-[to/from]-user functions are used to transfer data between your
> > device drivers memory (in kernel space) to user space
> > memory....typically whenever you want to transfer data to/from your
> > device to a user application....the user-space application will give
> > your driver a pointer (in user space) to which you transfer data
> > (which would be stored in a buffer in kernel space) using these helper
> > functions...
> > 
> > HTH,
> > -mandeep
> > > 
> > > Thanks,
> > > Dhanshri
> > > 
> > > 
> > > 
> > > 
> > > 
> > > --
> > > Kernelnewbies: Help each other learn about the Linux kernel.
> > > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > > FAQ:           http://kernelnewbies.org/faq/
> > > 
> > 
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> > 
> > 
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 

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