Re: [RFC PATCH v2 05/10] block: Add block device sysfs attribute to set/clear/show LED

2021-08-12 Thread Jackie Liu
ÔÚ 2021/8/9 ÉÏÎç11:32, Ian Pilcher дµÀ: > Add show & store functions in blk-ledtrig.c (attributes defined in genhd.c) > > Show function shows all available LEDs (LEDs associated with blkdev trigger); > currently associated LED is shown in square brackets ([]) > > Store function accepts

Re: [RFC PATCH v2 05/10] block: Add block device sysfs attribute to set/clear/show LED

2021-08-09 Thread Ian Pilcher
On 8/8/21 11:21 PM, Jackie Liu wrote: +// Returns a pointer to the first whitespace character in s (or a pointer to +// the terminating null), which is effectively a pointer to the position *after* +// the last character in the non-whitespace token at the beginning of s. (s is +// expected to

[RFC PATCH v2 05/10] block: Add block device sysfs attribute to set/clear/show LED

2021-08-08 Thread Ian Pilcher
Add show & store functions in blk-ledtrig.c (attributes defined in genhd.c) Show function shows all available LEDs (LEDs associated with blkdev trigger); currently associated LED is shown in square brackets ([]) Store function accepts either all whitespace or "none" to clear LED Signed-off-by: