https://bugs.kde.org/show_bug.cgi?id=405394

--- Comment #6 from Daniel Wagner <w...@monom.org> ---
I am not sure if I handle the size argument correctly. Here the snipped from
the man pages:


       size   This field should be set  to  the  size  of  the  structure  in 
bytes,  as  in
              sizeof(struct  sched_attr).  If the provided structure is smaller
than the ker‐
              nel structure, any additional fields are assumed to be '0'.   If 
the  provided
              structure  is  larger  than  the kernel structure, the kernel
verifies that all
              additional fields are 0; if they are not, sched_setattr() fails
with the  error
              E2BIG and updates size to contain the size of the kernel
structure.

              The  above  behavior  when the size of the user-space sched_attr
structure does
              not match the size of the kernel structure allows for future 
extensibility  of
              the  interface.   Malformed  applications  that  pass oversize
structures won't
              break in the  future  if  the  size  of  the  kernel  sched_attr 
structure  is
              increased.   In  the future, it could also allow applications
that know about a
              larger user-space sched_attr structure to determine whether they
are running on
              an older kernel that does not support the larger structure.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to