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

RE: device driver



Hi Amit
Thank you very much, but still I have few more doubts.
Yes , as u say i will heve to implement functions in file_operation
structure and register that with the kerlnal while initializing the device
driver.
But my question is about tty_driver struct and tyy driver and how to use and
what is the difference between this and the earlier, May be I am missing the
whole point here :(  .
Thank you very much
V.Kugan

-----Original Message-----
From: linux-india-programmers-owner@xxxxxxxxxxxxxxxxxxxxx
[mailto:linux-india-programmers-owner@xxxxxxxxxxxxxxxxxxxxx]On Behalf Of
Amit Kucheria
Sent: Monday, March 26, 2001 7:26 PM
To: linux-india-programmers@xxxxxxxxxxxxxxxxxxxxx
Subject: Re: [LIP] device driver


Read this article by Alan Cox on network buffers and memory management.
It talks of some basics of device drivers.

http://www2.linuxjournal.com/lj-issues/issue30/1312.html

In general u might want to implement atleast the ioctl, open and close
operations in the file_structure.

A good place to start loooking at sample code is drivers/net/skeleton.c

ciao,
Amit
ps. and yes as someone pointed out, Rubini's book is good for basics

> --- "V.Kugan" <kugan@xxxxxxxxxxxxx> wrote:
> > I am very new device drivrer.
> > I asked few questiobs earlier as well but no answer
> > :(, may be they are too
> > trival.
> > Now i have seen some char diver deining
> > file_operation structer and some
> > tty_driver, how do i no what to select?? can anyone
> > pls answer this.
> > And also is there any news group for discussing
> > general device driver
> > related questions for linux , may be i should see
> > that archive.
> > Thank you very much.
> > V.Kugan

--
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
           Team Niehaus || Room # 245E
         University of Kansas @ Lawrence
   (R)+1-(785)-830 8521 ||| (O)+1-(785)-864 7774
____________________________________________________



---------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/