Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
Tags
- mm_struct
- fastpath
- Linux
- Kernel
- Android
- slab
- BLOCK
- kmalloc
- vmalloc
- commit
- page
- kafka
- buddy_system
- slub
- strex
- spinlock
- Network
- blk-mq
- NDK
- Apache
- pmap
- slowpath
- vm_area_struct
- lruvec
- proc
- devicedriver
- memory
- 카프카
- multiqueue
- allocator
Archives
- Today
- Total
목록spinlock (1)
Art of Pr0gr4m
[Linux Kernel] spinlock
arm 리눅스 커널의 spin lock 구현부를 보면 다음과 같다. typedef struct { union { u32 slock; struct __raw_tickets { #ifdef __ARMEB__ u16 next; u16 owner; #else u16 owner; u16 next; #endif } tickets; }; } arch_spinlock_t; static inline void arch_spin_lock(arch_spinlock_t *lock) { unsigned long tmp; u32 newval; arch_spinlock_t lockval; prefetchw(&lock->slock); __asm__ __volatile__( "1:ldrex%0, [%3]\n" "add%1, %0, %4..
IT/Linux Kernel
2020. 7. 10. 09:33