pi_waiters in task_struct

2013-03-12 Thread Kevin Wilson
Hi, Looking into task_struct (include/linux/scehd.h) , we have: /* PI waiters blocked on a rt_mutex held by this task */ struct plist_head pi_waiters; Any ideas what pi stand for ? I assume it has nothing to do with pi from mathematics... rgs. Kevin

Re: pi_waiters in task_struct

2013-03-12 Thread Yuva Raj
Hi kevin , PI stands for Priority Inheritance. * * Refer : http://lxr.free-electrons.com/source/Documentation/pi-futex.txt * * Regards, yuva On Tue, Mar 12, 2013 at 11:54 AM, Kevin Wilson wkev...@gmail.com wrote: Hi, Looking into task_struct (include/linux/scehd.h) , we have: /* PI

Explanation of asm/gpio.h in Doc/gpio.txt seems out of date

2013-03-12 Thread Robert P. J. Day
(the first in probably a number of questions related to digging around in embedded linux-related code -- i know there's an embedded-linux list, if that's a better forum, i'll move stuff there.) currently writing an intro to GPIO for my new EL course, and ran across this in doc file

Re: pthread_lock

2013-03-12 Thread Prabhu nath
I guess we should not mix mutex and condition variable. Both have their own respective semantics. *mutex* is used to serialize access to a shared resource among competing threads. *condition variable* is used to notify a* state change* of a resource to the interested thread. In case of condition

Re: User space memory

2013-03-12 Thread Prabhu nath
On Sun, Mar 10, 2013 at 11:30 PM, Christoph Seitz c.se...@tu-bs.de wrote: Hi all, I have some problems allocation Memory the right way and use it in my kernel module. I use a char device for reading and writing from/to a pcie dma card. Especially the read function makes me some headache.

Re: Is this normal or wrong?

2013-03-12 Thread Prabhu nath
kmem_cache_alloc() is used to allocate a memory object from a respective cache. Can you elaborate on what is ur objective or can you get us how you have invoked this function. To my understanding kmem_cache_alloc() will just return a linear virtual address (void *) of a memory object. It would

Re: User space memory

2013-03-12 Thread Valdis . Kletnieks
On Tue, 12 Mar 2013 18:38:05 +0530, Prabhu nath said: On Sun, Mar 10, 2013 at 11:30 PM, Christoph Seitz c.se...@tu-bs.de wrote: I use a char device for reading and writing from/to a pcie dma card. Especially the read function makes me some headache. The user allocates some memory with

Re: User space memory

2013-03-12 Thread Christoph Seitz
Am 12.03.2013 14:08, schrieb Prabhu nath: On Sun, Mar 10, 2013 at 11:30 PM, Christoph Seitz c.se...@tu-bs.de mailto:c.se...@tu-bs.de wrote: Hi all, I have some problems allocation Memory the right way and use it in my kernel module. I use a char device for reading

Re: User space memory

2013-03-12 Thread Valdis . Kletnieks
On Tue, 12 Mar 2013 15:03:53 +0100, Christoph Seitz said: I found out, if I use the force flag with get_user_pages, the pages get faulted, but there has to be a nicer way than using the force flag. Why does there have to be a nicer way? Maybe you already got the nice way. (Hint - why does

Difference between task_active_pid_ns(current) and current-nsproxy-pid.

2013-03-12 Thread Raphael S Carvalho
1169/* 1170 * If the new process will be in a different pid namespace 1171 * don't allow the creation of threads. 1172 */ 1173if ((clone_flags (CLONE_VM|CLONE_NEWPID)) 1174(task_active_pid_ns(current) != current-nsproxy-pid_ns)) 1175

Re: Is this normal or wrong?

2013-03-12 Thread ishare
On Tue, Mar 12, 2013 at 06:53:49PM +0530, Prabhu nath wrote: kmem_cache_alloc() is used to allocate a memory object from a respective cache. Can you elaborate on what is ur objective or can you get us how you have invoked this function. To my understanding kmem_cache_alloc() will just

Re: User space memory

2013-03-12 Thread Prabhu nath
On Tue, Mar 12, 2013 at 7:59 PM, valdis.kletni...@vt.edu wrote: On Tue, 12 Mar 2013 18:38:05 +0530, Prabhu nath said: On Sun, Mar 10, 2013 at 11:30 PM, Christoph Seitz c.se...@tu-bs.de wrote: I use a char device for reading and writing from/to a pcie dma card. Especially the read

Re: pthread_lock

2013-03-12 Thread Prabhu nath
On Wed, Mar 13, 2013 at 9:40 AM, ishare june.tune@gmail.com wrote: On Tue, Mar 12, 2013 at 06:18:02PM +0530, Prabhu nath wrote: I guess we should not mix mutex and condition variable. Both have their own respective semantics. *mutex* is used to serialize access to a shared resource