Skip to contentSkip to conversation

Documentation on top half and bottom halves

DISCUSSION krishna 3 participants 5 messages Dec 18, 2004

lore
Share & tools
lore

krishna

author
#0 lore raw

Hi all,

Can any one tell me good Documentation on bottom halves beyond doubt.

Regards,
Krishna Chaitanya

author
#2 lore raw
In reply to krishna

Thank you very much

Quoted 1 line · krishna

Can any one tell me good Documentation on bottom halves beyond doubt.

Documentation on Tasklets:

- http://www.xml.com/ldd/chapter/book/ch09.html#t5
- kernel/softirq.c

Documentation on Workqueues:

- http://lwn.net/Articles/23634/
- kernel/workqueue.c

Clemens
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

author
#3 lore raw
In reply to krishna

Hi,

How to understand when to use which mechanism depending upon the hardware:

1) If DMA support is not there and If it is there.
2) If Shared Interrupts are there and not there.
3) If there are multiple same Host controllers and single Host Controller.

Regards,
Krishna Chaitanya

Thank you very much

Quoted 1 line · krishna

Can any one tell me good Documentation on bottom halves beyond doubt.

Documentation on Tasklets:

- http://www.xml.com/ldd/chapter/book/ch09.html#t5
- kernel/softirq.c

Documentation on Workqueues:

- http://lwn.net/Articles/23634/
- kernel/workqueue.c

Clemens
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw
Quoted 5 lines · you

How to understand when to use which mechanism depending upon the hardware:

1) If DMA support is not there and If it is there.
2) If Shared Interrupts are there and not there.
3) If there are multiple same Host controllers and single Host Controller.

It's independent of these questions. The decision between tasklet and workqueue is mostly:

- If you need non-atomic operations (e.g. allocate memory with GFP_KERNEL), you have to use work queues.
- If you need very low latencies for processing the interrupts, you should use tasklets.
- When in doubt, use work queues.

Arnd <><

PS: pleas read http://www.netmeister.org/news/learn2quote.html