re: devsw_detach is failing -- is this a manifestation of PR kern/56962?

2023-02-12 Thread Brian Buhrow
hello Matthew. That line assures that if a device driver has unloaded and reloaded its bdevw or cdevw interfaces, it gets assigned the same major numbers that they had when they were first loaded on the system. If a device driver has never loaded its bdevsw or cdevsw interfaces on a

re: devsw_detach is failing -- is this a manifestation of PR kern/56962?

2023-02-12 Thread matthew green
your change seems to fix a clear but to me. > - if (*bmajor < 0) > + if ((bdev != NULL) && (*bmajor < 0)) > *bmajor = conv->d_bmajor; there's also this line i'm curious about, just below: if (*bmajor != conv->d_bmajor || *cmajor !=

Re: devsw_detach is failing -- is this a manifestation of PR kern/56962?

2023-02-10 Thread Brian Buhrow
hello. Following up on this issue, I've discovered the problem with devsw_attach is that if one is reattaching a previously detached driver and that driver does not implementa bdev interface, devsw_attach returns an EINVAL error. The following patch fixes this problem. Any reason I

Re: devsw_detach is failing -- is this a manifestation of PR kern/56962?

2023-02-02 Thread Taylor R Campbell
> Date: Wed, 1 Feb 2023 23:24:53 -0800 > From: Brian Buhrow > > I'm runing NetBSD-9.99.77, which predates the pr kern/56962 > fixes. Is this behavior expected prior to the fix for this bug or > am I running into something else? I don't recall the details and don't have time to think