Re: Padding in gcc

2007-07-09 Thread pradeep singh
On 7/9/07, Rajat Jain <[EMAIL PROTECTED]> wrote: Hi, >> >> Can we always rely on the fact that gcc will pad the following structure? >> >> typedef struct { >> int descrp; SYSCALL64_STRUCT_ATTR; >> (Automatic padding here?) >> long long pos; SYSCALL64_STRUCT_ATTR; >> int

Re: Padding in gcc

2007-07-09 Thread pradeep singh
On 7/9/07, Rajat Jain <[EMAIL PROTECTED]> wrote: Hi, Perhaps a little offtopic but no harm in trying ... Can we always rely on the fact that gcc will pad the following structure? typedef struct { int descrp; SYSCALL64_STRUCT_ATTR; (Automatic padding here?) long long pos; SYS

Re: notifier_chain_register semantics query!!!

2007-05-18 Thread pradeep singh
On 5/17/07, Ratnadeep Joshi <[EMAIL PROTECTED]> wrote: > All, > > Following definition of notifier_chain_register is from kernel/sys.c > and for kernel 2.6.20.1 . > > static int notifier_chain_register(struct notifier_block **nl, > struct notifier_block *n) > { > while

notifier_chain_register semantics query!!!

2007-05-07 Thread pradeep singh
Hi All, Following definition of notifier_chain_register is from kernel/sys.c and for kernel 2.6.20.1 . static int notifier_chain_register(struct notifier_block **nl, struct notifier_block *n) { while ((*nl) != NULL) { if (n->priority > (*nl)->priority)

Re: Threading in linux

2007-04-24 Thread pradeep singh
On 4/24/07, Rick Brown <[EMAIL PROTECTED]> wrote: Hi list, I read that the kernel does not differentiate between threads and processes. That means, we can say that on a Linux system, the threading is purely provided by user level thread libraries, right? So as long as relevant system calls do n

Re: vmalloc and page faults (was: memory descriptor and kernel threads)

2007-04-19 Thread pradeep singh
On 4/19/07, Rajat Jain <[EMAIL PROTECTED]> wrote: Hi, > ... the kernel thread is as sensitive as the kernel itself > for the page faults. It _should not_ fault, unless ofcourse if its a > vmalloc'ed area .. and that happens every other kernel path anyway I have a doubt about the vmalloc'ed