Re: how to use hashmap in kernel module?

2011-09-19 Thread Daniel Baluta
On Mon, Sep 19, 2011 at 9:23 AM, Jon Zhou jon.z...@jdsu.com wrote: Hi I want to hashmap to store datat in kernel module, how can I do this? Any existed code? Hello, There are a lot of places where hashes are used. Just grep for 'hash' through the kernel sources. For example have a look at

Re: Cannot read using USB Skeleton Driver

2011-09-19 Thread Greg KH
On Mon, Sep 19, 2011 at 11:13:33AM +0530, Felix Varghese wrote: Just do:        modprobe usb_serial vendor=0x product=0x with the proper vendor and product ids for your device, then plug it in. No kernel changes needed at all, just have a pair of bulk in/out endpoints and all

Re: Why do the CFS chase fairness?

2011-09-19 Thread Parmenides
Hi, 2011/9/19 Mulyadi Santosa mulyadi.sant...@gmail.com: Hi :) Seriously, what I consider more fair is Con Kolivas BFS scheduler these days. No excessive time slice weighting, just priority stepping and very strict deadline. Hmm..., does that mean timeslice weighting introduce unfainess?

Re: Why do the CFS chase fairness?

2011-09-19 Thread Mulyadi Santosa
Hi . I am reaching my virtual limit here, so beg me pardon :) On Mon, Sep 19, 2011 at 23:26, Parmenides Hmm..., does that mean timeslice weighting introduce unfainess? If we think fairness relies on each task not fetching more timeslice than other tasks, the eaiest way to achieve fairness

Re: Cannot read using USB Skeleton Driver

2011-09-19 Thread Felix Varghese
You might be right and the code might be wrong, care to send a patch for it correcting the issue? Would be glad to do that, if I am able to resolve the issue. Meanwhile, any insights from anybody on this would be welcome! Regards, Felix. ___

regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread Amit Nagal
Hi , i want to disable CONFIG_DEBUG_FS in my kernel configuration . i am using 2.6.35 kernel on a embedded arm target . i am using usb hid driver to fetch thumbnail data on usb hid interface . the reason why i want to disable CONFIG_DEBUG_FS is that in interrupt callback , i dont want to spend

Re: regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread rohan puri
On Tue, Sep 20, 2011 at 9:31 AM, Amit Nagal helloin.a...@gmail.com wrote: Hi , i want to disable CONFIG_DEBUG_FS in my kernel configuration . i am using 2.6.35 kernel on a embedded arm target . i am using usb hid driver to fetch thumbnail data on usb hid interface . the reason why i want

Re: profiling functions called in interrupt context

2011-09-19 Thread rohan puri
On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal helloin.a...@gmail.com wrote: Hi , i want to measure time spend in a callback function called from interrupt context . since the time spend will be in us / ns , what kernel apis can i use to measure it ? also since i want to use it in interrupt

Re: regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread Amit Nagal
Hi , i already tried manual editing . but when i call make to build image after manual edit , CONFIG_DEBUG_FS is turned on again . i tried manual editing in linux - x86 PC also . i manually edited arch/x86/configs/i386_defconfig file to disable CONFIG_DEBUG_FS , but when i call make to build

Re: profiling functions called in interrupt context

2011-09-19 Thread rohan puri
On Tue, Sep 20, 2011 at 10:13 AM, Amit Nagal helloin.a...@gmail.com wrote: On Tue, Sep 20, 2011 at 10:05 AM, rohan puri rohan.pur...@gmail.com wrote: On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal helloin.a...@gmail.com wrote: Hi , i want to measure time spend in a callback function

Re: regarding disable of CONFIG_DEBUG_FS

2011-09-19 Thread Amit Nagal
On Tue, Sep 20, 2011 at 10:21 AM, rohan puri rohan.pur...@gmail.com wrote: On Tue, Sep 20, 2011 at 10:09 AM, Amit Nagal helloin.a...@gmail.com wrote: Hi , i already tried manual editing . but when i call make to build image after manual edit , CONFIG_DEBUG_FS is turned on again . i

Re: profiling functions called in interrupt context

2011-09-19 Thread Amit Nagal
On Tue, Sep 20, 2011 at 10:25 AM, rohan puri rohan.pur...@gmail.com wrote: On Tue, Sep 20, 2011 at 10:13 AM, Amit Nagal helloin.a...@gmail.com wrote: On Tue, Sep 20, 2011 at 10:05 AM, rohan puri rohan.pur...@gmail.com wrote: On Tue, Sep 20, 2011 at 9:44 AM, Amit Nagal