sysctl: introduce new proc handler proc_dobool
This is to let bool variable could be correctly displayed in big/little endian sysctl procfs. sizeof(bool) is arch dependent, proc_dobool should work in all arches. Suggested-by: NPan Xinhui <xinhui@linux.vnet.ibm.com> Signed-off-by: NJia He <hejianet@gmail.com> [thuth: rebased the patch to the current kernel version] Signed-off-by: NThomas Huth <thuth@redhat.com> Signed-off-by: NChuck Lever <chuck.lever@oracle.com>
Showing
想要评论请 注册 或 登录