lkml.org 
[lkml]   [2000]   [Oct]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
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.

Thanks

Thomas Hood
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

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