Re: [SLUG] Writing char drivers in Redhat 9 (again)

2004-04-12 Thread Rob Weir
On Thu, Apr 08, 2004 at 01:32:12AM +1000, Richard said
> Howdy all,
> 
> I?m trying to recompile a character driver for RH7 under RH9 (2.4.20-8).
> 
> I?m getting errors because /usr/include/linux/fs.h no longer has
> definitions for 
> 
> struct file_operations
> struct inode
> struct file
> 
> This seems to nullify any documentation on linux character device
> drivers that I?ve ever seen. Am I missing something obvious? Anyone know
> how we?re supposed to do it now?

Shouldn't you be building it against actual kernel headers, instead of
libc ones?  In Debian you would use the ones from the
kernel-headers- package.

-- 
Rob Weir <[EMAIL PROTECTED]> | [EMAIL PROTECTED]  |  Do I look like I want a CC?
Words of the day: investigation Etacs interception International Criminal Court


signature.asc
Description: Digital signature
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Writing char drivers in Redhat 9

2004-04-08 Thread Guy Ellis
Hi Richard,

This doesn't directly answer your question directly but it may be of some help.

There is really good book on Linux device drivers written by Rubini and 
Corbet. The book is published under GPL and you can download it from...

http://www.xml.com/ldd/chapter/book/

It has two chapters on Char drivers.

It's well worth a read, it even inspired me to write my own ATM driver.

Cheers,

 - Guy.

At 11:00 PM 7/04/2004 +1000, you wrote:

Howdy all,



I'm trying to recompile a character driver for RH7 under RH9 (2.4.20-8).



I'm getting errors because /usr/include/linux/fs.h no longer has 
definitions for



struct file_operations

struct, inode

struct file



This seems to nullify any documentation on linux character device drivers 
that I've ever seen. Am I missing something obvious? Anyone know how we're 
supposed to do it now?



Cheers

Rich

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 30/01/2004
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
--
Guy Ellis
[EMAIL PROTECTED]
http://www.traverse.com.au
Mobile 0419 398 234
--
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Writing char drivers in Redhat 9

2004-04-07 Thread Carl G Lewis
On Wednesday 07 April 2004 23:00, Richard wrote:
> I’m trying to recompile a character driver for RH7 under RH9 (2.4.20-8).
>
> I’m getting errors because /usr/include/linux/fs.h no longer has
> definitions for
>
> struct file_operations
> struct, inode
> struct file

My understanding is that all the headers in /usr/include are user-space 
headers. They are NOT used for compiling kernel drivers. For this reason they 
do not contain declarations of structs used only within the kernel (like 
inodes). 

You should compile the driver against the kernel headers, which if you have 
installed the kernel source RPM should be in /usr/src/linux-2.4/include/linux

Carl.


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Writing char drivers in Redhat 9 (again)

2004-04-07 Thread Richard
Title: Writing char drivers in Redhat 9 (again)






Howdy all,


I’m trying to recompile a character driver for RH7 under RH9 (2.4.20-8).


I’m getting errors because /usr/include/linux/fs.h no longer has definitions for 


struct file_operations

struct inode

struct file


This seems to nullify any documentation on linux character device drivers that I’ve ever seen. Am I missing something obvious? Anyone know how we’re supposed to do it now?

Cheers

Rich


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 30/01/2004
 



-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Writing char drivers in Redhat 9

2004-04-07 Thread Richard








Howdy all,

 

I’m trying to recompile a character driver for
RH7 under RH9 (2.4.20-8).

 

I’m getting errors because /usr/include/linux/fs.h no longer has definitions for 

 

struct file_operations

struct,
inode

struct file

 

This seems to nullify any documentation on linux character device drivers that I’ve ever seen. Am
I missing something obvious? Anyone know how we’re supposed to do it now?

 

Cheers

Rich








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.576 / Virus Database: 365 - Release Date: 30/01/2004
 
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html