Skip to content

Instantly share code, notes, and snippets.

@taeguk
Last active May 16, 2017 05:18
Show Gist options
  • Save taeguk/959ae71d0ddb821b633ffa40dd862de1 to your computer and use it in GitHub Desktop.
Save taeguk/959ae71d0ddb821b633ffa40dd862de1 to your computer and use it in GitHub Desktop.
embedded-system-software-note.txt
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