Implicitly define attribute for device.
This commit is contained in:
parent
c1e169afb0
commit
c24abed7e6
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sem.c,v 1.52 2014/10/10 07:48:50 uebayasi Exp $ */
|
||||
/* $NetBSD: sem.c,v 1.53 2014/10/10 08:14:47 uebayasi Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -441,6 +441,11 @@ defdev(struct devbase *dev, struct loclist *loclist, struct attrlist *attrs,
|
|||
dev->d_attrs = attrs;
|
||||
dev->d_classattr = NULL; /* for now */
|
||||
|
||||
/*
|
||||
* Implicit attribute definition for device.
|
||||
*/
|
||||
refattr(dev->d_name);
|
||||
|
||||
/*
|
||||
* For each interface attribute this device refers to, add this
|
||||
* device to its reference list. This makes, e.g., finding all
|
||||
|
|
Loading…
Reference in New Issue