|
|
Log in / Subscribe / Register

Driver porting: Char devices and large dev_t

Driver porting: Char devices and large dev_t

Posted Sep 29, 2003 12:31 UTC (Mon) by cynove (guest, #15558)
Parent article: Driver porting: Char devices and large dev_t

Sure this interface is fine, but how can I make it available to build my out of kernel tree module ?

When using register_chrdev, everything is fine.
If I use some cdev_ function, the build process complains that cdev_del, cdev_add etc... are undefined when building module.ko. (ie stage 2)

The only difference I found is that register_chrdev is defined as extern in <linux/fs.h>, and cdev_ are just declared in cdev.h.

How can I make these functions available to my modules ?



to post comments

Driver porting: Char devices and large dev_t

Posted Sep 29, 2003 12:45 UTC (Mon) by cynove (guest, #15558) [Link] (1 responses)

Maybe I should have done more googling !
It seems the response is there :

http://www.ussg.iu.edu/hypermail/linux/kernel/0309.2/0150.html

Exporting char dev functions

Posted Sep 29, 2003 13:53 UTC (Mon) by corbet (editor, #1) [Link]

That patch went into -test6; upgrade and your module should work.

Do be aware that the char driver interface is still somewhat volatile; things will still change somewhat before it's all over.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds