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

RE: device driver



Hi Santosh
I am sorry I should have been more specific.(I am quite new to linux device
driver programming)
I am now going through the source code of bluetooth driver for linux. It is
implemented as a char driver but it using tty_driver structure and done as a
tty driver and in init module they use

		tty_register_driver(..)
But in rubins book for simple char driver he defines file_operation
structure and  in init module

	register_chr_driver(..)
is used, now my question is what is the difference between tty_driver and
the othe one, and where I am supposed to use what and adavantages.
I would appreciate if you can send me some links or any detail about it.
Thank you very much
V.Kugan

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


Hi Kugan
  Probably you are compiling your code on some older
kernel version. while compilation use gcc option -Wall
to see all WARNINGS. It is better to go thru
Alessandro Rubini's books on Device Driver. You can
send the error in details.

CHEERS
Santosh

--- "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
>
>
> ---------------------------------------------
> LIP is all for free speech.  But it was created
> for a purpose.  Violations of the rules of
> this list will result in stern action.


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/

---------------------------------------------
LIP is all for free speech.  But it was created
for a purpose.  Violations of the rules of
this list will result in stern action.