Re: Controlling subsystem power using APM

From: Thomas Hood (thood@excite.com)
Date: Sat Oct 14 2000 - 23:31:13 EST


> 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/



This archive was generated by hypermail 2b29 : Sun Oct 15 2000 - 21:00:28 EST