函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\locking\rtmutex.c Create Date:2022-07-27 10:52:44
首页 Copyright©Brick

1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
void __sched rt_mutex_futex_unlock(struct rt_mutex *lock)
{
    DEFINE_WAKE_Q(wake_q);
    unsigned long flags;
    bool postunlock;
 
    raw_spin_lock_irqsave(&lock->wait_lock, flags);
    postunlock = __rt_mutex_futex_unlock(lock, &wake_q);
    raw_spin_unlock_irqrestore(&lock->wait_lock, flags);
 
    if (postunlock)
        rt_mutex_postunlock(&wake_q);
}