---
name: "struct_w1_slave"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_w1_slave"
---

# struct\_w1\_slave(9)

holds a single slave device on the bus

## NAME

struct\_w1\_slave - holds a single slave device on the bus

## SYNOPSIS

```
struct w1_slave {
  struct module * owner;
  unsigned char name[W1_MAXNAMELEN];
  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

owner

Points to the one wire “wire” kernel module.

name\[W1\_MAXNAMELEN\]

Device id is ascii.

w1\_slave\_entry

data for the linked list

reg\_num

the slave id in binary

refcnt

reference count, delete when 0

ttl

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

flags

bit flags for W1\_SLAVE\_ACTIVE W1\_SLAVE\_DETACH

master

bus which this slave is on

family

module for device family type

family\_data

pointer for use by the family module

dev

kernel device identifier

## AUTHOR

**David Fries** \<David@Fries.net\>

Author.

## COPYRIGHT
