The HyperNews Linux KHG Discussion Pages

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

  Forum: Supporting Functions
  Re: 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 <rgerharz@erols.com>

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.)