CardSight 0.1.0
C API reference for the CardSight firmware and application
Loading...
Searching...
No Matches
device Struct Reference

Reference-counted object shared between the driver and its users. More...

#include <device.h>

Data Fields

char name [DEVICE_NAME_MAX]
struct device * parent
void(* release )(struct device *dev)
int refcount

Detailed Description

Reference-counted object shared between the driver and its users.

Field Documentation

◆ name

char device::name[DEVICE_NAME_MAX]

Name the object is known by.

◆ parent

struct device* device::parent

Parent object, when there is one.

◆ refcount

int device::refcount

Number of live references.

◆ release

void(* device::release) (struct device *dev)

Called when the last reference goes.


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