리눅스 커널의 구조와 원리/9. 커널 동기화 (1) 썸네일형 리스트형 [LinuxKernel][Spinlock] spin_lock(): in-depth code review Now, let me look into the spinlock implmentation in more details.After analyzing the assembly code, R2 is key debugging signature which is the original value of spinlock owner. Code Review: arch_spin_lock(part 1) -> If the spinlock is acquired sucessfully.Let me assume tickets.next=0x0, tickets.owner=0x0(spinlock is not held) before _raw_spin_lock() is executed[1]: R2: (raw_spinlock_t *)lock is .. 이전 1 다음