Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/turnstile.h
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | |||||
int turnstile_empty(struct turnstile *ts, int queue); | int turnstile_empty(struct turnstile *ts, int queue); | ||||
void turnstile_free(struct turnstile *); | void turnstile_free(struct turnstile *); | ||||
struct thread *turnstile_head(struct turnstile *, int); | struct thread *turnstile_head(struct turnstile *, int); | ||||
struct turnstile *turnstile_lookup(struct lock_object *); | struct turnstile *turnstile_lookup(struct lock_object *); | ||||
int turnstile_signal(struct turnstile *, int); | int turnstile_signal(struct turnstile *, int); | ||||
struct turnstile *turnstile_trywait(struct lock_object *); | struct turnstile *turnstile_trywait(struct lock_object *); | ||||
void turnstile_unpend(struct turnstile *); | void turnstile_unpend(struct turnstile *); | ||||
void turnstile_wait(struct turnstile *, struct thread *, int); | void turnstile_wait(struct turnstile *, struct thread *, int); | ||||
struct thread *turnstile_lock(struct turnstile *, struct lock_object **); | bool turnstile_lock(struct turnstile *, struct lock_object **, | ||||
struct thread **); | |||||
void turnstile_unlock(struct turnstile *, struct lock_object *); | void turnstile_unlock(struct turnstile *, struct lock_object *); | ||||
void turnstile_assert(struct turnstile *); | void turnstile_assert(struct turnstile *); | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* _SYS_TURNSTILE_H_ */ | #endif /* _SYS_TURNSTILE_H_ */ |