#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/sched/signal.h>
#include <linux/delay.h>
#include <linux/export.h>
#include "w1_internal.h"
DEFINE_SPINLOCK(…);
static LIST_HEAD(w1_families);
int w1_register_family(struct w1_family *newf)
{ … }
EXPORT_SYMBOL(…);
void w1_unregister_family(struct w1_family *fent)
{ … }
EXPORT_SYMBOL(…);
struct w1_family * w1_family_registered(u8 fid)
{ … }
static void __w1_family_put(struct w1_family *f)
{ … }
void w1_family_put(struct w1_family *f)
{ … }
#if 0
void w1_family_get(struct w1_family *f)
{
spin_lock(&w1_flock);
__w1_family_get(f);
spin_unlock(&w1_flock);
}
#endif
void __w1_family_get(struct w1_family *f)
{ … }