10#ifndef CARDSIGHT_DEVICE_H
11#define CARDSIGHT_DEVICE_H
16#define DEVICE_NAME_MAX 32
45static inline void put_device(
struct device *dev)
void get_device(struct device *dev)
Take one more reference; NULL is ignored.
#define DEVICE_NAME_MAX
Longest device name, including the terminating zero.
Definition device.h:16
void device_initialize(struct device *dev)
Prepare a device structure: zero it and take the initial reference.
Reference-counted object shared between the driver and its users.
Definition device.h:21
struct device * parent
Definition device.h:23
int refcount
Definition device.h:25
char name[DEVICE_NAME_MAX]
Definition device.h:22
void(* release)(struct device *dev)
Definition device.h:24