all the kernel apis some where

2010-11-30 Thread Bond
Hi list I was having this question as we have some 200 system calls in C similarly is there a list of kernel APIs that kernel provides to device driver developers or other sort of people/ -- http://www.infibeam.com/Books/linux-kernel-api-lambert-m-surhone/9786132143969.html -- To unsubscribe

Re: all the kernel apis some where

2010-11-30 Thread Shreyansh Jain
Hi, On Tue, Nov 30, 2010 at 3:56 PM, Bond jamesbond.2...@gmail.com wrote: Hi list I was having this question as we have some 200 system calls in C similarly is there a list of kernel APIs that kernel provides to device driver developers or other sort of people/ I Googled

Re: how is a device detected

2010-11-30 Thread Bond
On Tue, Nov 23, 2010 at 3:07 AM, Yuchen Liao lycdra...@gmail.com wrote: AFAIK, in the device_add() function (in driver/base/core.c), kernel will invoke device_create_file() function to create the uevent file; (The kobj is also added in this device_add() function by invoke kobject_add()

kernel build on ubuntu 10.04 fails, buffer overflow detected

2010-11-30 Thread Robert P. J. Day
hi, one of the people working thru my kernel programming course reports the following kernel build error trying to build the kernel on ubuntu 10.04: http://pastebin.com/myKCcZ0X i'm going to check it out later but if anyone knows off-hand what might be happening there, fill me in. thanks.

Re: kernel build on ubuntu 10.04 fails, buffer overflow detected

2010-11-30 Thread Bond
On Tue, Nov 30, 2010 at 4:50 PM, Robert P. J. Day rpj...@crashcourse.ca wrote:  hi, one of the people working thru my kernel programming course reports the following kernel build error trying to build the kernel on ubuntu 10.04:  http://pastebin.com/myKCcZ0X i'm going to check it out later

Problem mounting SD memory card

2010-11-30 Thread Chandrakant Kumar
I'm having problem mounting my SD memory card using inbuilt Ricoh card reader. dmesg output - mmc0: error -110 whilst initialising SD card uname -r = 2.6.36.1-mykernel I'm using Dell Vostro 1400n laptop with ubuntu 10.10. -- To unsubscribe from this list: send an email with unsubscribe

importance of microcontrollers for Kernel Programming

2010-11-30 Thread Bond
Hi list, was going through some relevant links docs as usual. Curious to know how much of microcontrollers does a kernel developer understands. Is there some resource which the list would suggest? How can some one write their own kernel and not follow the one which is written via Linus. -- James

Re: kernel build on ubuntu 10.04 fails, buffer overflow detected

2010-11-30 Thread Mulyadi Santosa
On Tue, Nov 30, 2010 at 18:20, Robert P. J. Day rpj...@crashcourse.ca wrote:  hi, one of the people working thru my kernel programming course reports the following kernel build error trying to build the kernel on ubuntu 10.04:  http://pastebin.com/myKCcZ0X Must be something to do with

Re: kernel build on ubuntu 10.04 fails, buffer overflow detected

2010-11-30 Thread Andrew Case
It is a bug in ar, you probably should gather more information on this issue (specific version of Ubuntu and the related packages) and file a bug with Ubuntu. I don't think kernel people can help. On Tue, Nov 30, 2010 at 5:20 AM, Robert P. J. Day rpj...@crashcourse.cawrote: hi, one of the

Re: importance of microcontrollers for Kernel Programming

2010-11-30 Thread Josh Cartwright
On Tue, Nov 30, 2010 at 09:30:49PM +0530, Bond wrote: Hi list, was going through some relevant links docs as usual. Curious to know how much of microcontrollers does a kernel developer understands. Is there some resource which the list would suggest? How can some one write their own kernel

FW: problem setting up affinity mask for irq intrupt

2010-11-30 Thread Raoufehsadat Hashemian Harandi
Hello, I am completely new in Kernel related stuff. I have a load imbalance problem and so I am trying to divide the overhead of interrupts related to eth0 between all cores instead of having them all handled by core 0. Although I change the affinity mask for this interrupt using this

Re: kernel build on ubuntu 10.04 fails, buffer overflow detected

2010-11-30 Thread Greg Freemyer
On Tue, Nov 30, 2010 at 6:20 AM, Robert P. J. Day rpj...@crashcourse.ca wrote:  hi, one of the people working thru my kernel programming course reports the following kernel build error trying to build the kernel on ubuntu 10.04:  http://pastebin.com/myKCcZ0X The initial openSUSE 2.6.37-rc2

Re: FW: problem setting up affinity mask for irq intrupt

2010-11-30 Thread Mulyadi Santosa
On Wed, Dec 1, 2010 at 00:12, Raoufehsadat Hashemian Harandi rhas...@ucalgary.ca wrote: Hello, I am completely new in Kernel related stuff. I have a load imbalance problem and so I am  trying to divide the overhead of interrupts related to eth0 between all cores instead of having them all

RE: FW: problem setting up affinity mask for irq intrupt

2010-11-30 Thread Raoufehsadat Hashemian Harandi
Yes, it is running, I also putted a heavy load with around 1 interrupt per second to see if it changes the number but the output is still like this: #cat /proc/interrupts CPU0 CPU1 CPU2 CPU3 CPU4 CPU5 CPU6 CPU7 98: 78484912 0

Re: FW: problem setting up affinity mask for irq intrupt

2010-11-30 Thread Mulyadi Santosa
On Wed, Dec 1, 2010 at 00:39, Raoufehsadat Hashemian Harandi rhas...@ucalgary.ca wrote: Yes, it is running, I also putted a heavy load with around 1 interrupt per second to see if it changes the number but the output is still like this: may we see the content of /etc/sysconfig/irqbalance?

RE: FW: problem setting up affinity mask for irq intrupt

2010-11-30 Thread Raoufehsadat Hashemian Harandi
Thanks a lot, This(http://lxr.linux.no/linux+v2.6.36/Documentation/ia64/IRQ-redir.txt) should be the next step after finding the solution for the first problem (that is just using core0) !!! :D I found something which is quite related

Re: FW: problem setting up affinity mask for irq intrupt

2010-11-30 Thread Mulyadi Santosa
On Wed, Dec 1, 2010 at 01:34, Raoufehsadat Hashemian Harandi rhas...@ucalgary.ca wrote: Hi, please don't do top posting :) This(http://lxr.linux.no/linux+v2.6.36/Documentation/ia64/IRQ-redir.txt) should be the next step after finding the solution for the first problem (that is just using

Re: FW: problem setting up affinity mask for irq intrupt

2010-11-30 Thread Mulyadi Santosa
Hi... On Wed, Dec 1, 2010 at 01:34, Raoufehsadat Hashemian Harandi rhas...@ucalgary.ca wrote: I found something which is quite related (http://www.alexonlinux.com/smp-affinity-and-proper-interrupt-handling-in-li nux ) this article says that it may not be possible to change irq mask in the

Re: how is a device detected

2010-11-30 Thread Yuchen Liao
How the kernel scan the pci devices: In /arch/x86/pci/legacy.c, *pci_legacy_init()* invoke - *pcibios_scan_root(0) *to scan pci devices from the root bus, if the bus is already scanned then just return; else the - *pci_scan_bus_parented() *will be invoked, in this

Re: Convert urb to skbuff

2010-11-30 Thread Greg KH
On Mon, Nov 29, 2010 at 05:43:13PM +0530, Bond wrote: On Mon, Nov 29, 2010 at 5:17 PM, sugnan prabhu sugnan.pra...@gmail.com wrote: Hello,       I am trying to write a kernel module which is the combination of the usb driver and a network driver, now whenever the data is recieved by the