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
- proc
- lruvec
- devicedriver
- fastpath
- memory
- slab
- kafka
- slowpath
- strex
- kmalloc
- slub
- Linux
- allocator
- Network
- page
- pmap
- spinlock
- commit
- Android
- vmalloc
- BLOCK
- mm_struct
- Apache
- 카프카
- multiqueue
- NDK
- buddy_system
- blk-mq
- vm_area_struct
- Kernel
Archives
- Today
- Total
목록strex (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