Re: Listing Supported Kernel Parameters?

2018-12-31 Thread Henry C
Thanks for your direction! Found what I want! Appreicate! On Tue, Jan 1, 2019 at 1:01 AM Valentin Vidic wrote: > On Tue, Jan 01, 2019 at 12:48:58AM +0800, Henry C wrote: > > I just downloaded the source here: > > >

Re: Listing Supported Kernel Parameters?

2018-12-31 Thread Valentin Vidic
On Tue, Jan 01, 2019 at 12:48:58AM +0800, Henry C wrote: > I just downloaded the source here: > http://vault.centos.org/7.5.1804/os/Source/SPackages/kernel-3.10.0-862.el7.src.rpm > > And to my surprise, I don't even see mce as a kernel parameter based on the > command you suggested: > $ grep -r

Re: Listing Supported Kernel Parameters?

2018-12-31 Thread Valentin Vidic
On Mon, Dec 31, 2018 at 02:27:35PM +0800, Henry C wrote: > I am looking for a command (or alike) to list all the supported kernel > parameters based on my current kernel. > > If such command doesn't exist, it would still be great to see a complete > list like this one: >

Re: Listing Supported Kernel Parameters?

2018-12-31 Thread Henry C
Thanks. I just downloaded the source here: http://vault.centos.org/7.5.1804/os/Source/SPackages/kernel-3.10.0-862.el7.src.rpm And to my surprise, I don't even see mce as a kernel parameter based on the command you suggested: $ grep -r "early_param" . | grep mce $ So it seems like "early_param"

why are some stat.h "S_*" perm macros not exported via uapi?

2018-12-31 Thread Robert P. J. Day
more pedantry ... just noticed this snippet in include/linux/stat.h: ... #include #define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO) #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO) #define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH) #define S_IWUGO

Re: why are some stat.h "S_*" perm macros not exported via uapi?

2018-12-31 Thread valdis . kletnieks
On Mon, 31 Dec 2018 14:53:30 -0500, "Robert P. J. Day" said: > #define S_IRWXUGO (S_IRWXU|S_IRWXG|S_IRWXO) > #define S_IALLUGO (S_ISUID|S_ISGID|S_ISVTX|S_IRWXUGO) > #define S_IRUGO (S_IRUSR|S_IRGRP|S_IROTH) > #define S_IWUGO (S_IWUSR|S_IWGRP|S_IWOTH) >

stylistically, IS_ERR() versus IS_ERR_VALUE()?

2018-12-31 Thread Robert P. J. Day
poking around error handling in the kernel, and noticed the following ... in include/linux/err.h, we have IS_ERR() unsurprisingly defined in terms of IS_ERR_VALUE(): #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= \ (unsigned long)-MAX_ERRNO) ... snip ... static