Subject: Re: Yet more Device Properties
To: None <eeh@netbsd.org, enami@sm.sony.co.jp>
From: None <eeh@netbsd.org>
List: tech-kern
Date: 02/22/2001 16:48:41
eeh@netbsd.org writes:
> struct device {
> enum devclass dv_class; /* this device's classification */
:
> SLIST_HEAD(devpropslist, devprop) dv_props;
> void *dv_private;
> };
> int dev_delprop(struct device *dev, const char *name, int flags);
>
> Remove a property from a device node. If a NULL is supplied for the
> name, dev_delprop(9) will remove all properties from a device node.
> It returns 0 on success or an error value.
Since this description impiles a property may be removed out of order,
SLIST isn't quite appropriate.
Why isn't SLIST appropriate? Removing properties is not a very
common operation.
Eduardo