Understanding the LDM: Removing a device's parent

2014-01-10 Thread Rick Ramstetter
I need a strategy for handling unregistered parent devices. struct device *parent = get_ptr_to_parent(); struct device *child = kzalloc ( a device ) child-parent = get_device(parent); ... device_register(child) Later on: struct device *parent = get_ptr_to_parent(); device_unregister(parent);

Re: How does module_init(jpeg_init) get called

2014-01-10 Thread Miles MH Chen
Hi Michael, You can use binary utils like nm or objdump to exam your vmlinux. Linker collects initcall functions and puts them in initcall section. Kernel can find all initcall functions in initcall section. Regards, MH On Fri, Jan 10, 2014 at 3:00 AM, m silverstri

Setting config when using 'make menuconfig'

2014-01-10 Thread m silverstri
I create a new config with my Kconfig, like this: config VIDEO_MY_DRIVER bool my driver default y depends on VIDEO_DEV VIDEO_V4L2 select V4L2_MEM2MEM_DEV ---help--- This is a my driver When I run 'make menuconfig' and when I search for 'CONFIG_VIDEO_MY_DRIVER', I See

Re: Setting config when using 'make menuconfig'

2014-01-10 Thread Anders Darander
On 10 Jan 2014 20:52, m silverstri michael.j.silvers...@gmail.com wrote: When I run 'make menuconfig' and when I search for 'CONFIG_VIDEO_MY_DRIVER', I See it. Symbol: VIDEO_MY_DRIVER [=n] │ Type : boolean │ Prompt: my driver │ │ Location: │ - Device Drivers │ (1) -

Re: Setting config when using 'make menuconfig'

2014-01-10 Thread m silverstri
Thanks. Under which menu/sub-menu are there Configuration I should go and enable them? I don't see where to go under the menu after I search them: Symbol: VIDEO_V4L2 [=n] │ Type : tristate │ Defined at drivers/media/v4l2-core/Kconfig:6 │ Depends on: MEDIA_SUPPORT [=y] (I2C [=y] || I2C

Re: Setting config when using 'make menuconfig'

2014-01-10 Thread Anders Darander
On 10 Jan 2014 21:10, m silverstri michael.j.silvers...@gmail.com wrote: Thanks. Under which menu/sub-menu are there Configuration I should go and enable them? I'm not in front of my computer, so I can't really check it... However, look at what the different options depend on. I don't see

Re: Setting config when using 'make menuconfig'

2014-01-10 Thread m silverstri
Thanks. I need help in enable VIDEOBUF2_CORE Symbol: VIDEOBUF2_CORE [=n] │ Type : tristate │ Defined at drivers/media/v4l2-core/Kconfig:61 │ Depends on: MEDIA_SUPPORT [=y] │ Selects: DMA_SHARED_BUFFER [=n] │

Kernel Network Subsystem Patching

2014-01-10 Thread Aruna Hewapathirane
Hi, I am a newbie to kernel hacking and I have a question. Am trying to patch the Network Subsystem and changing the net_random() to direct calls of prandom_u32. Why ? Because it is harder to audit / grep and new commits actually use prandom_u32 only am told. u32 prandom_u32(void);/* defined

issue with compiling kernel module

2014-01-10 Thread Arun M Kumar
I am facing the following error message when i try to compile my kernel module. it is a simple hello world module make: Entering directory `/usr/src/linux-3.4.6-2.10' ERROR: Kernel configuration is invalid. include/generated/autoconf.h or include/config/auto.conf are missing.

how to determine kernel interrupt latency

2014-01-10 Thread loody
hi all: is it possible to determine interrupt latency in kernel with any ftrace or proc? -- Regards, ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies