Scroll to navigation

STRUCT W1_SLAVE(9) W1 API internal to the kernel STRUCT W1_SLAVE(9)

NAME

struct_w1_slave - holds a single slave device on the bus

SYNOPSIS

struct w1_slave {

struct module * owner;
unsigned char name;
struct list_head w1_slave_entry;
struct w1_reg_num reg_num;
atomic_t refcnt;
int ttl;
unsigned long flags;
struct w1_master * master;
struct w1_family * family;
void * family_data;
struct device dev; };

MEMBERS

struct module * owner

Points to the one wire “wire” kernel module.

unsigned char name

Device id is ascii.

struct list_head w1_slave_entry

data for the linked list

struct w1_reg_num reg_num

the slave id in binary

atomic_t refcnt

reference count, delete when 0

int ttl

decrement per search this slave isn't found, deatch at 0

unsigned long flags

bit flags for W1_SLAVE_ACTIVE W1_SLAVE_DETACH

struct w1_master * master

bus which this slave is on

struct w1_family * family

module for device family type

void * family_data

pointer for use by the family module

struct device dev

kernel device identifier

AUTHOR

David Fries <David@Fries.net>

Author.

COPYRIGHT

July 2017 Kernel Hackers Manual 4.12