lock_flag
unsigned long lock_flag;
spin_lock_irqsave(&re_chan->desc_lock, lock_flag);
spin_unlock_irqrestore(&re_chan->desc_lock, lock_flag);
spin_lock_irqsave(&re_chan->desc_lock, lock_flag);
spin_unlock_irqrestore(&re_chan->desc_lock, lock_flag);
if (excl_mask & lock_flag(excl)) {
} else if (excl_mask & lock_flag(excl_read)) {
unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit);
if (target_entry->class->usage_mask & lock_flag(bit)) {
unsigned usage_mask = lock_flag(bit) | lock_flag(read_bit);
if (target_entry->class->usage_mask & lock_flag(bit)) {
if (class->usage_mask & lock_flag(bit + LOCK_USAGE_DIR_MASK)) {
if (class->usage_mask & lock_flag(bit))
} else if (class->usage_mask & lock_flag(bit))
__u32 lock_flag = LOCK_CLASS_ZONE_LOCK;
bpf_map_update_elem(&lock_syms, &lock_addr, &lock_flag, BPF_ANY);
bpf_map_update_elem(&lock_syms, &lock_addr, &lock_flag, BPF_ANY);
__u32 lock_flag;
lock_flag = LOCK_CLASS_RQLOCK;
bpf_map_update_elem(&lock_syms, &lock_addr, &lock_flag, BPF_ANY);