'\" t .\" Title: struct w1_master .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: September 2017 .\" Manual: W1 API internal to the kernel .\" Source: Kernel Hackers Manual 4.12.13 .\" Language: English .\" .TH "STRUCT W1_MASTER" "9" "September 2017" "Kernel Hackers Manual 4\&.12\&" "W1 API internal to the kernel" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" struct_w1_master \- one per bus master .SH "SYNOPSIS" .sp .nf struct w1_master { struct list_head w1_master_entry; struct module * owner; unsigned char name; 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; }; .fi .SH "MEMBERS" .PP struct list_head w1_master_entry .RS 4 master linked list .RE .PP struct module * owner .RS 4 module owner .RE .PP unsigned char name .RS 4 dynamically allocate bus name .RE .PP struct mutex list_mutex .RS 4 protect slist and async_list .RE .PP struct list_head slist .RS 4 linked list of slaves .RE .PP struct list_head async_list .RS 4 linked list of netlink commands to execute .RE .PP int max_slave_count .RS 4 maximum number of slaves to search for at a time .RE .PP int slave_count .RS 4 current number of slaves known .RE .PP unsigned long attempts .RS 4 number of searches ran .RE .PP int slave_ttl .RS 4 number of searches before a slave is timed out .RE .PP int initialized .RS 4 prevent init/removal race conditions .RE .PP u32 id .RS 4 w1 bus number .RE .PP int search_count .RS 4 number of automatic searches to run, \-1 unlimited .RE .PP u64 search_id .RS 4 allows continuing a search .RE .PP atomic_t refcnt .RS 4 reference count .RE .PP void * priv .RS 4 private data storage .RE .PP int enable_pullup .RS 4 allows a strong pullup .RE .PP int pullup_duration .RS 4 time for the next strong pullup .RE .PP long flags .RS 4 one of w1_master_flags .RE .PP struct task_struct * thread .RS 4 thread for bus search and netlink commands .RE .PP struct mutex mutex .RS 4 protect most of w1_master .RE .PP struct mutex bus_mutex .RS 4 pretect concurrent bus access .RE .PP struct device_driver * driver .RS 4 sysfs driver .RE .PP struct device dev .RS 4 sysfs device .RE .PP struct w1_bus_master * bus_master .RS 4 io operations available .RE .PP u32 seq .RS 4 sequence number used for netlink broadcasts .RE .SH "AUTHOR" .PP \fBDavid Fries\fR <\&David@Fries.net\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br