* [KJ] register_chrdev could be replaced by cdev_init
@ 2005-08-10 22:29 trem
2005-08-13 18:05 ` Tobias Klauser
0 siblings, 1 reply; 2+ messages in thread
From: trem @ 2005-08-10 22:29 UTC (permalink / raw)
To: kernel-janitors
Hi all
I've investigated about char device, and I discover that "register_chrdev"
is an old way to register char driver. The new way (good one ?) is
"cdev_init".
"register_chrdev" is still used in 2.6.13-rc6:
> find . -name "*.c" -exec grep -l register_chrdev {} \; | wc -l
> 85
I propose to add this change ("register_chrdev" -> "cdev_init") on the
kerneljanitor TODO list.
regards,
trem
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [KJ] register_chrdev could be replaced by cdev_init
2005-08-10 22:29 [KJ] register_chrdev could be replaced by cdev_init trem
@ 2005-08-13 18:05 ` Tobias Klauser
0 siblings, 0 replies; 2+ messages in thread
From: Tobias Klauser @ 2005-08-13 18:05 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 521 bytes --]
On 2005-08-11 at 02:26:53 +0200, trem <trem@zarb.org> wrote:
> I've investigated about char device, and I discover that "register_chrdev"
> is an old way to register char driver. The new way (good one ?) is
> "cdev_init".
The LDD3 book [1] also provides some valuable information about this issue
in chapter 3, p. 55-57
In case this is added to KJ TODO, a pointer to [2] (the PDF of the third
chapterof LDD3) might be useful.
Cheers, Tobias
[1] http://lwn.net/Kernel/LDD3
[2] http://lwn.net/images/pdf/LDD3/ch03.pdf
[-- Attachment #2: Type: text/plain, Size: 168 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-13 18:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-10 22:29 [KJ] register_chrdev could be replaced by cdev_init trem
2005-08-13 18:05 ` Tobias Klauser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.