Re: [PATCH 1/1] [Blackfin] char driver for Blackfin on-chip OTP memory

From: Jiri Slaby
Date: Wed Jan 30 2008 - 08:44:20 EST


On 01/30/2008 02:15 PM, Bryan Wu wrote:
And one question for Jiri, what is the difference between misc char
driver with other char drivers.

No difference in behaviour. Open function in misc replaces fops by your specified one (like a v4l or tty layer, or chrdev_open aswell, which will be called on each character device open).

Because we got some other char drivers locally, maybe some day send them out.

Misc has one predefined major and is used for such uses, in which you need only one minor number. The point is not to block resting 254 minors of one major just for only one minor used.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/