Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
hwspinlock_ops Struct Reference

#include <hwspinlock_internal.h>

Data Fields

int(* trylock )(struct hwspinlock *lock)
 
void(* unlock )(struct hwspinlock *lock)
 
void(* relax )(struct hwspinlock *lock)
 

Detailed Description

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.

Field Documentation

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.


The documentation for this struct was generated from the following file: