lkml.org 
[lkml]   [2022]   [Sep]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] char: misc: Allow minors values up to MINORMASK
On Tue, Sep 06, 2022 at 12:52:13PM -0700, D Scott Phillips wrote:
> For per-cpu coresight_tmc devices, we can end up with hundreds of devices
> on large systems that all want a dynamic minor number. Switch the dynamic
> minors allocator to an ida and add logic to allocate in the ranges [0..127]
> and [256..MINORMASK]. Allocations start from 127 growing downwards and then
> increasing from 256, so device numbering for the first 128 devices should
> be the same as before.
>
> Signed-off-by: D Scott Phillips <scott@os.amperecomputing.com>
> ---
> drivers/char/misc.c | 41 ++++++++++++++++++++++++++++-------------
> 1 file changed, 28 insertions(+), 13 deletions(-)

So you are adding more logic to the kernel for no change at all?

Why is this needed? What changed here except the underlying data
structure being used?

thanks,

greg k-h

\
 
 \ /
  Last update: 2022-09-17 16:27    [W:0.125 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site