Last active
May 16, 2017 05:18
-
-
Save taeguk/959ae71d0ddb821b633ffa40dd862de1 to your computer and use it in GitHub Desktop.
embedded-system-software-note.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process Context : context of kernel flow through system call of user process | |
Interrupt Context : context of kernel flow through interrupt by I/O devices. | |
Kernel Control Flow | |
- Process Context (by system call) | |
- Interrupt Context (by interrupt) | |
kmalloc GFP_KERNEL | |
sleep | |
In interrupt context, GPF_KERNEL cannot be used. (Because, sleeping is not accepted in interrupt context.) | |
malloc | |
---------- | |
kmalloc | |
get_alloc_page | |
buddy, slab (2^N) | |
jiffies | |
high resolution tiemr | |
signal handler | |
------- | |
for process | |
in multi-thread, handler is executed on one thread. | |
executing in user stack. | |
mutex cannot be used! (handler is executed on a thread which already acquires the mutex) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment