question about

Rami Rosen roszenrami at gmail.com
Mon Mar 25 13:22:47 EDT 2013


Hi,
In init_clocksource_sysfs() method,
device_register() adds the folder:
	/sys/devices/system/clocksource/clocksource0,
whereas subsys_system_register() adds the parent folder
(/sys/devices/system/clocksource)
see:
http://lxr.free-electrons.com/source/kernel/time/clocksource.c#L902


rgs,
Rami Rosen
http://ramirose.wix.com/ramirosen

On Mon, Mar 25, 2013 at 4:57 AM, Moritz Fischer
<moritz.fischer at ettus.com> wrote:
> On Sun, Mar 24, 2013 at 1:29 PM, Kevin Wilson <wkevils at gmail.com> wrote:
>
> Kevin,
>
>> Any idea which methods adds the following entries:
>> /sys/devices/system/clocksource/clocksource0
>> /sys/devices/system/clocksource/clocksource0/available_clocksource
>
> I'm not an expert, but a quick grep for 'available_clocksource' led me
> to the kernel/time/clocksource.c file.
>
> Hope that helps you out,
>
> - Moritz
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



More information about the Kernelnewbies mailing list