Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-16 Thread Lucas De Marchi
On Sun, Sep 14, 2014 at 3:56 PM, Greg KH wrote: > On Sun, Sep 14, 2014 at 10:35:58PM +0400, Kirill Tkhai wrote: >> >> It's just an unification with /proc/modules. Why should we do any >> difference between external and built-in modules? It's the same, >> it's similar, it's better to parse when the

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-15 Thread Kirill Tkhai
14.09.2014, 22:56, "Greg KH" : > On Sun, Sep 14, 2014 at 10:35:58PM +0400, Kirill Tkhai wrote: >>  On 14.09.2014 22:13, Greg KH wrote: >>>  On Sun, Sep 14, 2014 at 10:05:46PM +0400, Kirill Tkhai wrote:  On 14.09.2014 21:39, Greg KH wrote: >  On Sun, Sep 14, 2014 at 09:31:58PM +0400, Kiri

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-15 Thread Michal Marek
On 2014-09-14 19:31, Kirill Tkhai wrote: > For example, when I compile "loop" module built-in and "loop" is in > /etc/modules, init script warns about this module is not present and > can't be autoloaded. The script does not store CONFIG_XXX <-> module_xxx > conformity. And nobody stores it. You m

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-15 Thread Michal Marek
On 2014-09-14 17:38, Greg KH wrote: > On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: >> This series implements a possibility to show the list of built-in drivers >> to userspace. The names of drivers will be the same as when they are modules. > > Have you looked at /sys/modules/ ?

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Oleg Nesterov
On 09/14, Kirill Tkhai wrote: > > On 14.09.2014 21:27, Oleg Nesterov wrote: > > > > That said, I do not really understand 2/3. Not only I do not understand > > this kbuild magic, I am not sure I understand what /proc/built-in will > > actually show. > > It's a list of drivers, one driver per line:

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Kirill Tkhai
On 14.09.2014 22:12, Richard Weinberger wrote: > On Sun, Sep 14, 2014 at 7:57 PM, Kirill Tkhai wrote: >> On 14.09.2014 21:27, Oleg Nesterov wrote: >>> On 09/14, Greg KH wrote: On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: > This series implements a possibility to show

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Greg KH
On Sun, Sep 14, 2014 at 10:35:58PM +0400, Kirill Tkhai wrote: > On 14.09.2014 22:13, Greg KH wrote: > > On Sun, Sep 14, 2014 at 10:05:46PM +0400, Kirill Tkhai wrote: > >> On 14.09.2014 21:39, Greg KH wrote: > >>> On Sun, Sep 14, 2014 at 09:31:58PM +0400, Kirill Tkhai wrote: > On 14.09.2014 19:

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Kirill Tkhai
On 14.09.2014 22:13, Greg KH wrote: > On Sun, Sep 14, 2014 at 10:05:46PM +0400, Kirill Tkhai wrote: >> On 14.09.2014 21:39, Greg KH wrote: >>> On Sun, Sep 14, 2014 at 09:31:58PM +0400, Kirill Tkhai wrote: On 14.09.2014 19:38, Greg KH wrote: > On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kiril

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Greg KH
On Sun, Sep 14, 2014 at 10:05:46PM +0400, Kirill Tkhai wrote: > On 14.09.2014 21:39, Greg KH wrote: > > On Sun, Sep 14, 2014 at 09:31:58PM +0400, Kirill Tkhai wrote: > >> On 14.09.2014 19:38, Greg KH wrote: > >>> On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: > This series imple

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Richard Weinberger
On Sun, Sep 14, 2014 at 7:57 PM, Kirill Tkhai wrote: > On 14.09.2014 21:27, Oleg Nesterov wrote: >> On 09/14, Greg KH wrote: >>> >>> On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: This series implements a possibility to show the list of built-in drivers to userspace. The n

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Kirill Tkhai
On 14.09.2014 21:39, Greg KH wrote: > On Sun, Sep 14, 2014 at 09:31:58PM +0400, Kirill Tkhai wrote: >> On 14.09.2014 19:38, Greg KH wrote: >>> On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: This series implements a possibility to show the list of built-in drivers to userspa

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Kirill Tkhai
On 14.09.2014 21:27, Oleg Nesterov wrote: > On 09/14, Greg KH wrote: >> >> On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: >>> This series implements a possibility to show the list of built-in drivers >>> to userspace. The names of drivers will be the same as when they are >>> module

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Greg KH
On Sun, Sep 14, 2014 at 09:31:58PM +0400, Kirill Tkhai wrote: > On 14.09.2014 19:38, Greg KH wrote: > > On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: > >> This series implements a possibility to show the list of built-in drivers > >> to userspace. The names of drivers will be the sa

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Kirill Tkhai
On 14.09.2014 19:38, Greg KH wrote: > On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: >> This series implements a possibility to show the list of built-in drivers >> to userspace. The names of drivers will be the same as when they are modules. > > Have you looked at /sys/modules/ ?

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Oleg Nesterov
On 09/14, Greg KH wrote: > > On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: > > This series implements a possibility to show the list of built-in drivers > > to userspace. The names of drivers will be the same as when they are > > modules. > > Have you looked at /sys/modules/ ? Doe

Re: [PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Greg KH
On Sun, Sep 14, 2014 at 02:18:13PM +0400, Kirill Tkhai wrote: > This series implements a possibility to show the list of built-in drivers > to userspace. The names of drivers will be the same as when they are modules. Have you looked at /sys/modules/ ? Doesn't that show what you want here? > So,

[PATCH 0/3] Implement /proc/built-in file similar to /proc/modules

2014-09-14 Thread Kirill Tkhai
This series implements a possibility to show the list of built-in drivers to userspace. The names of drivers will be the same as when they are modules. So, if your system has "loop" driver then it appears either in /proc/modules or in /proc/built-in and userspace will be able to know about this. N