kcmp() breaks loose
kcmp() breaks loose
Posted Feb 15, 2021 8:48 UTC (Mon) by tdz (subscriber, #58733)Parent article: kcmp() breaks loose
> determining whether two open file descriptors (possibly found in different processes) refer to the same open file within the kernel
Oh, wow. That functionality is actually available! I've long been looking for how to compare open file descriptions. I'd need this for transactional programming in userspace; similar what the checkpoint/restore code does. With kcmp, a lot of ugly hacks can go away and the results should be much more accurate.
