Posted Dec 16, 2004 9:38 UTC (Thu) by raible (guest, #3899)
Parent article: Debugfs
Not to nitpick (ok, to nitpick), but the final declaration is incorrect.
debugfs_create_bool should _not_ take "u32 *value" as an argument;
presumable what was meant was "bool *", no?
Posted Dec 16, 2004 12:33 UTC (Thu) by pjdc (subscriber, #6906)
[Link]
C does not have a 'bool' type.
bool
Posted Dec 17, 2004 10:37 UTC (Fri) by dododge (subscriber, #2870)
[Link]
C does not have a 'bool' type.
Actually the latest version (C99) does have such a type, but you have to include <stdbool.h>
to make it visible by that name. "bool" is implemented using a new
integer type _Bool. _Bool requires special behavior when
values are converted to it, so it can't be implemented as a simple typedef of some other
integer type.