Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1667443

Re: [PATCH 2/2] char_dev: order /proc/devices by major number

From Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/2] char_dev: order /proc/devices by major number
Date 2017-06-16 08:30 +0200
Message-ID <tSSVz-4NR-11@gated-at.bofh.it> (permalink)
References <tSJfz-726-3@gated-at.bofh.it> <tSJfz-726-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Jun 15, 2017 at 02:05:21PM -0600, Logan Gunthorpe wrote:
> Presently, the order of the char devices listed in /proc/devices is not
> entirely sequential. If a char device has a major number greater than
> CHRDEV_MAJOR_HASH_SIZE (255), it will be ordered as if its major were
> module 255. For example, 511 appears after 1.

Hey, nice fix, that was annoying!

Also looks like block devices have the same issue in this file, care to
fix that up too while you are there?  :)

thanks,

greg k-h

Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] char_dev: extend dynamic allocation of majors into a higher range Logan Gunthorpe <logang@deltatee.com> - 2017-06-15 22:10 +0200
  [PATCH 2/2] char_dev: order /proc/devices by major number Logan Gunthorpe <logang@deltatee.com> - 2017-06-15 22:10 +0200
    Re: [PATCH 2/2] char_dev: order /proc/devices by major number Greg Kroah-Hartman <gregkh@linuxfoundation.org> - 2017-06-16 08:30 +0200
      Re: [PATCH 2/2] char_dev: order /proc/devices by major number Logan Gunthorpe <logang@deltatee.com> - 2017-06-16 16:20 +0200

csiph-web