lkml.org 
[lkml]   [2010]   [Nov]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] add netdev led trigger
> Please be consistent with rest of kernel...

There seem to be several ways this is done in existing sysfs drivers,
and most aren't documented yet in Documentation/ABI.

1. "0" and "1"
2. "enable" and "disable"
3. "enabled" and "disabled"
4. "enable" and "disable" when writing, but "enabled" and "disabled"
when read back

Some require trailing "\n", others make it optional.

Which is the One True Way?

--
Eric Cooper e c c @ c m u . e d u


\
 
 \ /
  Last update: 2010-12-01 00:25    [W:0.039 / U:0.772 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site