PebbleOS
Loading...
Searching...
No Matches
Data Fields
pbl_device Struct Reference

A hardware device. More...

#include <device.h>

Data Fields

const char * name
 Name, for logs.
 
int(* init )(const struct pbl_device *dev)
 Optional.
 
const struct pbl_device * parent
 Optional.
 
const struct pbl_device *const * deps
 Optional, NULL-terminated.
 
struct pbl_device_state * state
 Runtime state.
 

Detailed Description

A hardware device.

Field Documentation

◆ deps

const struct pbl_device* const* pbl_device::deps

Optional, NULL-terminated.

Further devices initialized first.

◆ init

int(* pbl_device::init) (const struct pbl_device *dev)

Optional.

Returns 0, -ENODEV if the device is not present, or another negative errno.

◆ name

const char* pbl_device::name

Name, for logs.

◆ parent

const struct pbl_device* pbl_device::parent

Optional.

Bus or multi-function device the device sits on, initialized first.

◆ state

struct pbl_device_state* pbl_device::state

Runtime state.


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