Gentoo Archives: gentoo-user

From: Samuli Suominen <ssuominen@g.o>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Peeve - finding kernel config options
Date: Thu, 27 Feb 2014 20:02:43
Message-Id: 530F9939.4080904@gentoo.org
In Reply to: Re: [gentoo-user] Peeve - finding kernel config options by Samuli Suominen
1 On 27/02/14 21:49, Samuli Suominen wrote:
2 > On 27/02/14 19:24, Dan Johansson wrote:
3 >> On 26.02.2014 22:24, Poison BL. wrote:
4 >>> On Wed, Feb 26, 2014 at 2:58 PM, Tanstaafl <tanstaafl@×××××××××××.org> wrote:
5 >>>> Hello all,
6 >>>>
7 >>>> This is for those of use who to choose to roll our kernels by hand...
8 >>>>
9 >>>> So, am I missing something?
10 >>>>
11 >>>> Given the most recent gentoo news item:
12 >>>>
13 >>>>> # eselect news read 10
14 >>>>> 2014-02-25-udev-upgrade
15 >>>>> Title Upgrade to >=sys-fs/udev-210
16 >>>>> Author Samuli Suominen <ssuominen@g.o>
17 >>>>> Posted 2014-02-25
18 >>>>> Revision 1
19 >>>>>
20 >>>>> The options CONFIG_FHANDLE and CONFIG_NET are now required in the kernel.
21 >>>> Whenever kernel config options are provided like this, it would be nice if
22 >>>> time was taken to provide the path to where they are found.
23 >>>>
24 >>>> I had to find the first one (CONFIG_FHANDLE) by:
25 >>>>
26 >>>> 1. grepping .config, seeing it wasn't enabled,
27 >>>> 2. running make menuconfig and searching for 'FHANDLE',
28 >>>> 3. seeing it is located in 'General setup',
29 >>>> 4. scouring the General setup options, finding no 'FHANLDE' anywhere,
30 >>>> 5. finding something in all lowercase named 'open by fhanlde syscalls',
31 >>>> 6. enabling this option, saving the modified config,
32 >>>> 7. confirming it is now enabled by grepping .config again
33 >>>>
34 >>>> Sheesh. Really?
35 >>>>
36 >>>> Would be nice if the news item had something like
37 >>>> CONFIG_FHANDLE (General setup > 'open by fhandle syscalls')
38 >>>> and
39 >>>> CONFIG_NET (still don't know which one this is??)
40 >>>>
41 >>>> Wackadoo...
42 >>>>
43 >>> When I search FHANDLE in menuconfig I get:
44 >>>
45 >>> │ Symbol: FHANDLE [=y]
46 >>> │ Type : boolean
47 >>> │ Prompt: open by fhandle syscalls
48 >>> │ Location:
49 >>> │ (1) -> General setup
50 >>> │ Defined at init/Kconfig:235
51 >>> │ Selects: EXPORTFS [=y]
52 >>> │ Selected by: GENTOO_LINUX_INIT_SYSTEMD [=y] && GENTOO_LINUX [=y]
53 >>> && GENTOO_LINUX_UDEV [=y]
54 >>>
55 >>> This clearly states that the prompt you're looking for is a line that
56 >>> says "open by fhandle syscalls" under "General setup"
57 >>>
58 >>> Sure, it's not the absolute simplest interface (i.e. it doesn't give a
59 >>> 'enable this' in the search results) but it does give all the
60 >>> necessary information about a given option to find it (as well as
61 >>> dependencies and their current states, etc). The most likely reason
62 >>> the news item doesn't list the specific "prompt" text (or even the
63 >>> category) is that, across even sub release versions of the kernel
64 >>> those are prone to change (and, at times, drastically) while the
65 >>> actual CONFIG_<name> option tends to be fairly static through time
66 >>> once it exists (even when superseded by new toys, i.e. older
67 >>> IDE/ATA/ATAPI options vs newer PATA options).
68 >> But if you press "1" in the example above you will "jump" directly to
69 >> the menu item. Clue --> (1)
70 >>
71 >> Regards,
72 > Seriously, I've known / for years and have had no issues finding anything
73 > myself, but this small information is still news to me.
74 > Nice one.
75 >
76 > - Samuli
77 >
78
79 Someone just pointed out to me at IRC this was introduced only at Linux
80 >= 3.8'ish (he wasn't entirely sure)
81 So, it's relatively new, I suppose that'd explain it

Replies

Subject Author
Re: [gentoo-user] Peeve - finding kernel config options Tanstaafl <tanstaafl@×××××××××××.org>