Version: 3.42-1 On Sun, Jul 29, 2012 at 08:32:49AM +0200, Michael Kerrisk (man-pages) wrote: > On Sat, Dec 17, 2011 at 11:26 PM, Kalle Olavi Niemitalo <k...@iki.fi> wrote: > > The ioprio_get(2) manual page describes the meanings of the which > > and who parameters: > > > >> IOPRIO_WHO_PROCESS > >> who is a process ID identifying a single process. > >> > >> IOPRIO_WHO_PGRP > >> who is a process group ID identifying all the members of > >> a process group. > > > > The manual page should mention that IOPRIO_WHO_PROCESS and > > IOPRIO_WHO_PGRP also allow who==0. > > Yes. > > > As implemented in > > fs/ioprio.c, who==0 means the calling process or its process > > group. The ioprio program in util-linux already uses the > > feature. This is worth documenting separately because > > e.g. tcsetpgrp does not treat pgrp==0 in that way. > > Agreed, this should be documented since various APIs interpret pgrp==0 > differently. Some (e.g., killpg(2)) are like this syscall, others are > not.
Documented by Michael in 82fdd7c7d0, already in manpages 3.42. > >> IOPRIO_WHO_USER > >> who is a user ID identifying all of the processes that > >> have a matching real UID. > > > > For IOPRIO_WHO_USER, the situation is more complex: who==0 means > > the root user in ioprio_set but the current user (I think the > > real UID of the calling process) in ioprio_get. (That > > inconsistency might even be a bug.) Remaning items as http://bugs.debian.org/691195 -- Simon Paillard -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org