PebbleOS v4.47.0-1075-g013613c8a
Loading...
Searching...
No Matches
pbl_hwspinlock_controller_ops Struct Reference

Hardware spinlock controller driver operations, called with interrupts locked. More...

#include <hwspinlock.h>

Data Fields

int(* trylock )(const struct pbl_hwspinlock_controller *ctrl, uint32_t id)
 Try to take a lock: 0 when taken, -EBUSY when another processor holds it.
 
void(* unlock )(const struct pbl_hwspinlock_controller *ctrl, uint32_t id)
 Release a lock taken with trylock.
 

Detailed Description

Hardware spinlock controller driver operations, called with interrupts locked.

Field Documentation

◆ trylock

int(* pbl_hwspinlock_controller_ops::trylock) (const struct pbl_hwspinlock_controller *ctrl, uint32_t id)

Try to take a lock: 0 when taken, -EBUSY when another processor holds it.

◆ unlock

void(* pbl_hwspinlock_controller_ops::unlock) (const struct pbl_hwspinlock_controller *ctrl, uint32_t id)

Release a lock taken with trylock.


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