---
name: "struct_w1_master"
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_master"
---

# struct\_w1\_master(9)

one per bus master

## NAME

struct\_w1\_master - one per bus master

## SYNOPSIS

```
struct w1_master {
  struct list_head w1_master_entry;
  struct module * owner;
  unsigned char name[W1_MAXNAMELEN];
  struct mutex list_mutex;
  struct list_head slist;
  struct list_head async_list;
  int max_slave_count;
  int slave_count;
  unsigned long attempts;
  int slave_ttl;
  int initialized;
  u32 id;
  int search_count;
  u64 search_id;
  atomic_t refcnt;
  void * priv;
  int enable_pullup;
  int pullup_duration;
  long flags;
  struct task_struct * thread;
  struct mutex mutex;
  struct mutex bus_mutex;
  struct device_driver * driver;
  struct device dev;
  struct w1_bus_master * bus_master;
  u32 seq;
};
```

## MEMBERS

w1\_master\_entry

master linked list

owner

module owner

name\[W1\_MAXNAMELEN\]

dynamically allocate bus name

list\_mutex

protect slist and async\_list

slist

linked list of slaves

async\_list

linked list of netlink commands to execute

max\_slave\_count

maximum number of slaves to search for at a time

slave\_count

current number of slaves known

attempts

number of searches ran

slave\_ttl

number of searches before a slave is timed out

initialized

prevent init/removal race conditions

id

w1 bus number

search\_count

number of automatic searches to run, -1 unlimited

search\_id

allows continuing a search

refcnt

reference count

priv

private data storage

enable\_pullup

allows a strong pullup

pullup\_duration

time for the next strong pullup

flags

one of w1\_master\_flags

thread

thread for bus search and netlink commands

mutex

protect most of w1\_master

bus\_mutex

pretect concurrent bus access

driver

sysfs driver

dev

sysfs device

bus\_master

io operations available

seq

sequence number used for netlink broadcasts

## AUTHOR

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

Author.

## COPYRIGHT
