Hi, Any idea which methods adds the following entries: /sys/devices/system/clocksource/clocksource0 /sys/devices/system/clocksource/clocksource0/available_clocksource ? Best, KevinW
On Sun, Mar 24, 2013 at 1:29 PM, Kevin Wilson <wkevils@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
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@ettus.com> wrote:
On Sun, Mar 24, 2013 at 1:29 PM, Kevin Wilson <wkevils@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@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
participants (3)
-
Kevin Wilson -
Moritz Fischer -
Rami Rosen