File: two_state_shared_lock.c

package info (click to toggle)
linux 6.12.69-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie-proposed-updates
  • size: 1,675,776 kB
  • sloc: ansic: 25,915,311; asm: 269,652; sh: 136,658; python: 65,456; makefile: 55,720; perl: 37,753; xml: 19,284; cpp: 5,895; yacc: 4,927; lex: 2,939; awk: 1,594; sed: 28; ruby: 25
file content (8 lines) | stat: -rw-r--r-- 195 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
// SPDX-License-Identifier: GPL-2.0

#include "two_state_shared_lock.h"

void __bch2_two_state_lock(two_state_lock_t *lock, int s)
{
	__wait_event(lock->wait, bch2_two_state_trylock(lock, s));
}