|
PebbleOS v4.47.0-1075-g013613c8a
|
Data Structures | |
| struct | pbl_hwspinlock_controller_ops |
| Hardware spinlock controller driver operations, called with interrupts locked. More... | |
| struct | pbl_hwspinlock_controller |
| A hardware spinlock controller. More... | |
| struct | pbl_hwspinlock |
| A hardware spinlock, as used by a consumer. More... | |
Macros | |
| #define | PBL_HWSPINLOCK_CONTROLLER_STATE_DEFINE(sym) PBL_DEVICE_STATE_DEFINE(sym) |
Define the class state of hardware spinlock controller sym, for the driver's define macro. | |
| #define | PBL_HWSPINLOCK_CONTROLLER_INIT(sym, _name, _init, _parent, _ops, _num_locks) |
Initializer for the struct pbl_hwspinlock_controller of controller sym. | |
| #define | PBL_HWSPINLOCK(_ctrl, _id) {.ctrl = (_ctrl), .id = (_id)} |
| Initializer for a struct pbl_hwspinlock. | |
| #define | PBL_HWSPINLOCK_NONE {.ctrl = nullptr, .id = 0U} |
| Initializer for a struct pbl_hwspinlock without a lock. | |
Functions | |
| int | pbl_hwspinlock_lock (const struct pbl_hwspinlock *lock) |
| Lock interrupts, then take a lock, spinning while another processor holds it. | |
| void | pbl_hwspinlock_unlock (const struct pbl_hwspinlock *lock) |
| Release a lock taken with pbl_hwspinlock_lock(), then unlock interrupts. | |