The HyperNews Linux KHG Discussion Pages

Note: Register_*dev() can assign an unused major number.

Forum: Supporting Functions
Re: Question Can register_*dev() assign an unused major number?
Keywords: register_chrdev major device
Date: Mon, 03 Feb 1997 17:48:13 GMT
From: Reinhold J. Gerharz <>

If the first parameter to register_chrdev() is zero (0), register_chrdev() will attempt to return an unused major device number. If it returns <0, then the return value is an error code.

(Moderator: Please delete this paragraph and replace my previous message, above, with this one.)