On Jul 22, 2014 10:41 PM, "Mohammad Merajul Islam Molla" <
meraj.eni...@gmail.com> wrote:
>
> You may find this useful - http://www.makelinux.net/ldd3/chp-6-sect-2
>
>
Thanks Meraj, that is really helpful.
> --
> Thanks,
> -Meraj
>
> On Wed, Ju
Hello,
Could someone point me to good documentation about the wait_event_*
and wake_up_* event family APIs?
I tried searching and nothing concrete shows up.
In particular:
When do we use wake_up_interruptible()? Does wake_up(wq) wake up all
the threads which are waiting on that work queue? Is t
Hello,
Let us say we have a per-cpu data structure as follows:
struct data {
atomic_t val;
};
Since this is a per-cpu data structure, do I need to have 'val' as
atomic? Or can I just use a normal 'int' for val?
Also are the following the same? If yes, which is preferable?
DEFINE_PER_CP
On Thu, Jul 10, 2014 at 4:55 PM, Christoph Lameter wrote:
> On Thu, 10 Jul 2014, Pranith Kumar wrote:
>
>> > Per cpu data structures are for the use of one cpu exclusively. If you use
>> > the variable as intended then there is no atomic_t required. If you want
>> &
Hi Christoph,
Thank you for answering.
On Thu, Jul 10, 2014 at 4:25 PM, Christoph Lameter wrote:
> On Thu, 10 Jul 2014, Pranith Kumar wrote:
>
>> Hello,
>>
>> Let us say we have a per-cpu data structure as follows:
>>
>> struct data {
>> atomic_