[lkml]   [2000]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Controlling subsystem power using APM
> Linux aesthetics disaproves of no-value-added definitions like 
> +struct apm_get_power_state_inparms {
> + unsigned short dev_id;
> +};

This is included for reasons of symmetry---it is
one of the components of a union.

> and in the code you present, rtnval seems redundant,
> since user-level can look at errno to see whether the
> ioctl succeeded.

rtnval is the APM BIOS return code whereas errno
is the ioctl return code.


Thomas Hood
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 12:41    [W:0.026 / U:2.748 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site