Re: do_initcalls

2013-03-19 Thread Tobias Boege
On Tue, 19 Mar 2013, ishare wrote: > > /** > > * module_init() - driver initialization entry point > > * @x: function to be run at kernel boot time or module insertion > > * > > * module_init() will either be called during do_initcalls() (if > > * builtin) or at module insertion time (if a mod

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Robert P. J. Day
On Tue, 19 Mar 2013, Arlie Stephens wrote: > Hi Robert, > > Thank you very much - for your web pages as well as for your responses > in this thread. > > On Mar 19 2013, Robert P. J. Day wrote: > >Oh, crap, I just remembered that even Robert Love's 3rd edition of > > "Linux Kernel Development"

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Victor Buciuc
On Tue, Mar 19, 2013 at 8:50 PM, Victor Buciuc wrote: > On Tue, Mar 19, 2013 at 5:34 PM, Arlie Stephens wrote: >> Hi Folks, >> >> I'm trying to understand the linux way of doing things, so as to write >> code which will be easier for experienced linux kernel people to >> understand. Yesterday I w

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Arlie Stephens
Hi Robert, Thank you very much - for your web pages as well as for your responses in this thread. On Mar 19 2013, Robert P. J. Day wrote: >Oh, crap, I just remembered that even Robert Love's 3rd edition of > "Linux Kernel Development" (aka "LKD3") isn't 100% correct WRT linked > lists. A whi

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Robert P. J. Day
Quoting "Robert P. J. Day" : > Quoting Arlie Stephens : > >> Interestingly, part of the debate yesterday probably resulted from one >> engineer having Love's 2nd edition, and me having his 3rd >> edition. Apparently RPDay pointed out some problems to Love which >> resulted in him changing his link

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Robert P. J. Day
Quoting Arlie Stephens : > Interestingly, part of the debate yesterday probably resulted from one > engineer having Love's 2nd edition, and me having his 3rd > edition. Apparently RPDay pointed out some problems to Love which > resulted in him changing his linked list discussion in his 3rd > editi

Re: for interested folks, i'll announce new kernel tutorials via twitter

2013-03-19 Thread Alec Joseph Rivera
Keep the tutorials coming sir, would be very cool to read and pass along to others who are also interested to start hacking around on the kernel. Kudos to you! On Sun, Mar 17, 2013 at 9:37 PM, Robert P. J. Day wrote: > > as i don't want to seem like i'm spamming this list with notes about > ne

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Arlie Stephens
Hi Dave, Thank you very much. On Mar 19 2013, Dave Hylands wrote: > > Hi Arlie, > [SNIP] > So the real secret is that it's a circular list with a dummy node. This > dummy node just has head/tail pointers and nothing else. It's good to have confirmation of this. > > So when you're advancing

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Anuz Pratap Singh Tomar
On Tue, Mar 19, 2013 at 3:53 PM, Dave Hylands wrote: > Hi Arlie, > > > > On Tue, Mar 19, 2013 at 8:34 AM, Arlie Stephens > wrote: > > > > Hi Folks, > > > > I'm trying to understand the linux way of doing things, so as to write > > code which will be easier for experienced linux kernel people to

Re: Memory allocations in linux for processes

2013-03-19 Thread Valdis . Kletnieks
On Tue, 19 Mar 2013 20:41:55 +0530, Niroj Pokhrel said: > #include > int main() > { > while(1) > { > } > return 0; > } > > I don't understand where does mmap or malloc come in to play in this code. Unless you linked it statically, a lot of stuff happens before you ever get to main

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Dave Hylands
Hi Arlie, On Tue, Mar 19, 2013 at 8:34 AM, Arlie Stephens wrote: > > Hi Folks, > > I'm trying to understand the linux way of doing things, so as to write > code which will be easier for experienced linux kernel people to > understand. Yesterday I wound up in a 3 engineer discussion about > somet

Re: Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Robert P. J. Day
Quoting Arlie Stephens : > Hi Folks, > > I'm trying to understand the linux way of doing things, so as to write > code which will be easier for experienced linux kernel people to > understand. Yesterday I wound up in a 3 engineer discussion about > something conceptually simple, that just didn't w

Design Patterns in Linux Kernel: Fancy Tricks With Linked Lists

2013-03-19 Thread Arlie Stephens
Hi Folks, I'm trying to understand the linux way of doing things, so as to write code which will be easier for experienced linux kernel people to understand. Yesterday I wound up in a 3 engineer discussion about something conceptually simple, that just didn't want to be done with the tools at hand

Re: Memory allocations in linux for processes

2013-03-19 Thread Niroj Pokhrel
On Tue, Mar 19, 2013 at 8:27 PM, Mulyadi Santosa wrote: > Hi Niroj > > Please see inlined answer below... > > On Mon, Mar 18, 2013 at 5:28 PM, Niroj Pokhrel > wrote: > > Hi all, > > As I have read, whenever we execute a program, the memory is allocated in > > different sections viz stack, tex

Re: Memory allocations in linux for processes

2013-03-19 Thread Mulyadi Santosa
Hi Niroj Please see inlined answer below... On Mon, Mar 18, 2013 at 5:28 PM, Niroj Pokhrel wrote: > Hi all, > As I have read, whenever we execute a program, the memory is allocated in > different sections viz stack, text and data segment. Yup, that is correct > But, since we have used > lo

Re: kernel build error

2013-03-19 Thread Mulyadi Santosa
Hi ... On Tue, Mar 19, 2013 at 12:28 PM, Kumar amit mehta wrote: > grep for copy_from_user_overflow gives me this: > > amit@ubuntu:~/linux-next/linux-next$ grep -ri copy_from_user_overflow * > arch/s390/include/asm/uaccess.h:extern void copy_from_user_overflow(void) > arch/s390/include/asm/uacces

Re: Kernel warning messages- protocol 0000 is buggy, dev eth0

2013-03-19 Thread Bjørn Mork
Sengottuvelan S writes: > Hi > > I am getting kernel messages = "protocol is buggy, dev eth0" in my > kernel while calling dev_queue_xmit(skb);. The packet is successfully > tranmitted on the wire but these messages are keep coming on the console. > > I am not sure what is the exact modifi

only for test

2013-03-19 Thread Ben Wu
FYI___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies