tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kcmp(2)




> On Jul 20, 2023, at 11:01 AM, Mouse <mouse%Rodents-Montreal.ORG@localhost> wrote:
> 
>>>> Don't cloner instances differ in minor number?  [...]
>>> Not that I?m aware of.  [...]
>> Well, as noted in this thread, traditionally you can tell when two
>> files are the same by examining stat results.
> 
> Maybe that should be a hint.  See below.
> 
>> And the cloner mechanism replaced an older scheme where you had to
>> pick the number of instances you wanted, and unless I'm
>> misremembering badly in that world each had to have its own minor
>> number.
> 
> That's my understanding as well.
> 
>> That said, it almost certainly isn't important...
> 
> Well, if it means that with a minor tweak NetBSD could have kcmp(3)
> instead of kcmp(2), it could be.

If you read the Linux kcmp(2) manual page, you’ll see that it’s a lot more than just file descriptors.

-- thorpej



Home | Main Index | Thread Index | Old Index