On Tue, Jul 25, 2006 at 11:40:12PM +0530, Vaibhav Nipunage wrote: > I want to write a Device driver. And I am facing some problem. > > Problem-: > I have created a raw partition and it has major no 22. And I want to > register this major no (22) for my device driver. But it gives error like > "register_blkdev : cannot get major no 22". > > Can it be possible to register a previously assigned major no to new driver. No, it's not. And it'c correct that way. You need to send a lot more details as to what yyou are doing to get a useful advice. Like driver for what device you want to write, for which version of kernel, where you created the raw partition and what do you mean by 'it has a major no 22'. -------------------------------------------------------------------------------- - Jan Hudec `Bulb' <bulb@xxxxxx> -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/