Linux Kernel
3.7.1
|
#include <hwspinlock_internal.h>
Data Fields | |
int(* | trylock )(struct hwspinlock *lock) |
void(* | unlock )(struct hwspinlock *lock) |
void(* | relax )(struct hwspinlock *lock) |
struct hwspinlock_ops - platform-specific hwspinlock handlers
: make a single attempt to take the lock. returns 0 on failure and true on success. may not sleep. : release the lock. always succeed. may not sleep. : optional, platform-specific relax handler, called by hwspinlock core while spinning on a lock, between two successive invocations of . may not sleep.
Definition at line 36 of file hwspinlock_internal.h.
void(* relax)(struct hwspinlock *lock) |
Definition at line 39 of file hwspinlock_internal.h.
int(* trylock)(struct hwspinlock *lock) |
Definition at line 37 of file hwspinlock_internal.h.
void(* unlock)(struct hwspinlock *lock) |
Definition at line 38 of file hwspinlock_internal.h.