On Tue, Jul 02, 2024 at 10:04:22PM -0700, Darrick J. Wong wrote: > > I know people like to fetishize file access (and to be honest from a > > shell it is really nice), but from a C program would you rather do > > one ioctl to find a sysfs base path, then do string manipulation to > > find the actual attribute, then open + read + close it, or do a single > > ioctl and read a bunch of values from a struct? > > Single ioctl and read from a struct. > > Or single ioctl and read a bunch of json (LOL) > > I wish the BLK* ioctls had kept pace with the spread of queue limits. Let me propose a new BLKLIMITS ioctl, and then we'll work from there?