Re: Unregistering interfaces

Alan Stern
2004-03-31T15:32:29Z

On Tue, 30 Mar 2004, David Brownell wrote:

> Alan Stern wrote:
>
> > I'm in favor of changing the behavior of sysfs, so that either it
> > refuses to delete directories that contain subdirectories or else it
> > recursively deletes the subdirectories first. At this point nothing has
> > been settled.
>
> Hmm, certainly I agree khubd should be deleting things bottom-up.
>
> Are you say it isn't doing that already? Or that it's trying to,
> but something's preventing that from working?

No, no -- as far as I know khudb gets rid of things in a perfectly correct
manner. But there are plenty of other parts in the Linux kernel, and I
don't know that they all delete things bottom-up. Greg implies that
usb-serial and the kernel's tty subsystem don't do this; I haven't had a
chance to look into it.

Alan Stern