Re: C programming resource

2010-11-22 Thread Anuz Pratap Singh Tomar
On Tue, Nov 23, 2010 at 5:37 AM, Sameer Rahmani wrote: > Hi, > i'm not a C programmer , but i have a medium level of C programming > knowledge that i think its not enough for spend time on kernel source. > so could you people guide me for choosing a good resource for improving my > C programming

Re: C programming resource

2010-11-22 Thread Bond
On Tue, Nov 23, 2010 at 11:07 AM, Sameer Rahmani wrote: > Hi, > i'm not a C programmer , but i have a medium level of C programming > knowledge that i think its not enough for spend time on kernel source. > so could you people guide me for choosing a good resource for improving my C > programming

Re: C programming resource

2010-11-22 Thread hiren panchasara
Pasting this from the faq doc Anuz recently prepared (with help from others on this list) for newbies. Thanks, Hiren C language programming books: 1. The C programming language by Kerninghan and Ritchie. Its a must-have book, most code in Kernel is written in C language and mastering C is import

Re: Building the linux kernel

2010-11-22 Thread Tapas Mishra
On Tue, Nov 23, 2010 at 9:25 AM, sugnan prabhu wrote: > Hello, >      I am a newbie and am trying to build the kernel, the kernel version am > trying to build in 2.6.36, i have added few header files and kernel module Check this page http://crashcourse.ca/introduction-linux-kernel-programming/less

C programming resource

2010-11-22 Thread Sameer Rahmani
Hi, i'm not a C programmer , but i have a medium level of C programming knowledge that i think its not enough for spend time on kernel source. so could you people guide me for choosing a good resource for improving my C programming knowledge?

Re: Building the linux kernel

2010-11-22 Thread neependra.kh...@gmail.com
Hi Sugan, On Tue, Nov 23, 2010 at 9:25 AM, sugnan prabhu wrote: > Hello, > I am a newbie and am trying to build the kernel, the kernel version am > trying to build in 2.6.36, i have added few header files and kernel module > in the kernel before the compilation, that procedure have followed i

Building the linux kernel

2010-11-22 Thread sugnan prabhu
Hello, I am a newbie and am trying to build the kernel, the kernel version am trying to build in 2.6.36, i have added few header files and kernel module in the kernel before the compilation, that procedure have followed is, $make $make module $sudo make modules_install $sudo make install /boo

Re: how is a device detected

2010-11-22 Thread Yuchen Liao
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() function) In user space, the *udevd* is listening the NETLINK_KOBJECT_EVENT t

RE: crap, i think LKD3 explains linked list head nodes incorrectly ...

2010-11-22 Thread Bruce Blinn
> > On Sun, 21 Nov 2010, Bruce Blinn wrote: > > > New task structures are added into the list in kernel/fork.c (line > > 1743 in my source). > > that's not what i see here, can you reproduce the few lines > at that point? i had assumed it was in fork.c somewhere. Sorry, I got the line numb

Re: Why the kernel is located in user space?

2010-11-22 Thread Venkatram Tummala
2010/11/22 Jakub Kiciński > Hi, > > Dnia 19-11-2010 o 06:17:53 Venkatram Tummala > napisał(a): > > 2010/11/18 Parmenides >> >> 2. For the kernel code, is it feasible to the use the user stack? Why >>> do we bother to switch to the kernel stack? >>> >>> The answer is Yes, you could. But it wo

Re: Why the kernel is located in user space?

2010-11-22 Thread Mulyadi Santosa
Hi... 2010/11/22 Jakub Kiciński : > Wouldn't it be a security bug to use the same stack for both? Kernel > function's parameters and auto variables would be still sitting above (well, > in x86 under ;) stack pointer. Not sure though if attacker could find > anything interesting there... Yes, of

Re: Why the kernel is located in user space?

2010-11-22 Thread Jakub Kiciński
Hi, Dnia 19-11-2010 o 06:17:53 Venkatram Tummala napisał(a): 2010/11/18 Parmenides 2. For the kernel code, is it feasible to the use the user stack? Why do we bother to switch to the kernel stack? The answer is Yes, you could. But it would be pretty messy & inconvenient. We just don't

Re: is there still an active kernel janitors project?

2010-11-22 Thread Kaspter Ju
On 11/21/2010 9:06 PM, Robert P. J. Day wrote: > > i can suggest some very specific cleanups people can work on if > they're bored. one related to lists: > > list_for_each() -> list_for_each_entry() calls > > that is, modifying the numerous (older-style) list_for_each() calls to > the more

Re: guidelines, faqs and dos and don'ts document

2010-11-22 Thread Mulyadi Santosa
On Mon, Nov 22, 2010 at 17:42, Anuz Pratap Singh Tomar wrote: > So I guess document is ready to be used/uploaded to kerrnelnewbie site if > there are no more points/suggestions or criticism. You have my support... the document looks good! -- regards, Mulyadi Santosa Freelance Linux trainer and

Socket Connection from Kernel Space

2010-11-22 Thread Tharindu Rukshan Bamunuarachchi
hi All, We are writing distributed file system over RDMA. Initially we are trying export file system data over UDP multicast so same method can be used to export data over UD/RDMA. Is it safe to send udp data from kernel space ? we have to open the socket which will multicast set of data. What is

Re: and there's a routine for *sorting* a kernel linked list as well

2010-11-22 Thread Robert P. J. Day
On Sun, 21 Nov 2010, Greg KH wrote: > On Sun, Nov 21, 2010 at 02:23:18AM -0500, Robert P. J. Day wrote: > > > > what started off as just some nonchalant poking around in kernel > > data structures has become moderately educational. i had no idea > > that there is support for *sorting* the nodes

Re: is there still an active kernel janitors project?

2010-11-22 Thread Robert P. J. Day
On Mon, 22 Nov 2010, Prabhu nath wrote: > Hi Robert, > >   I am also interested. > > Regards, > Prabhu > > > On Sun, Nov 21, 2010 at 6:36 PM, Robert P. J. Day > wrote: > >  i can suggest some very specific cleanups people can work on if > they're bored.  one related to lists: > >

Re: guidelines, faqs and dos and don'ts document

2010-11-22 Thread Anuz Pratap Singh Tomar
I have updated the doc and included few more points including the Robert's html point. now it has been three days since the first mail, so i guess i will push it further. So I guess document is ready to be used/uploaded to kerrnelnewbie site if there are no more points/suggestions or criticism. R

Re: is there still an active kernel janitors project?

2010-11-22 Thread Prabhu nath
Hi Robert, I am also interested. Regards, Prabhu On Sun, Nov 21, 2010 at 6:36 PM, Robert P. J. Day wrote: > > i can suggest some very specific cleanups people can work on if > they're bored. one related to lists: > > list_for_each() -> list_for_each_entry() calls > > that is, modifyin

Re: how is a device detected

2010-11-22 Thread Mulyadi Santosa
On Mon, Nov 22, 2010 at 13:37, Bond wrote: > Hi, in  some of the books I am reading I find > a text which mentions MODULE_DEVICE_TABLE () macro makes a user > defined structure available  in the module image so that the module > can be loaded on demand if the card is hotplugged. > I am not clear w

Re: how does macro to get base address register in configuration space works

2010-11-22 Thread Mulyadi Santosa
On Mon, Nov 22, 2010 at 10:02, Bond wrote: > I am trying to understand working of pci_resource_start function > So I browsed code via cscope and searched for string pci_resource_start > and got following in pci.h > >  #define pci_resource_start(dev, bar)    ((dev)->resource[(bar)].start) AFAIK, f

Re: is there still an active kernel janitors project?

2010-11-22 Thread Yuchen Liao
Hello Count me in~ On Sun, Nov 21, 2010 at 6:08 PM, Alex John wrote: > Hello > > I have a lot of time on my hands so I can help out. > > Cheers > Alex > > On 22 Nov 2010, at 04:35, hiren panchasara > wrote: > > Hi Robert, > > I would be interested in getting started :) > > Thanks, > Hiren > >