USB stack getting confused
Hans Petter Selasky
hps at selasky.org
Sun Mar 10 10:19:02 UTC 2019
On 3/10/19 10:47 AM, Konstantin Belousov wrote:
>> Yes, I can do that if destroy_dev() ensures that d_close is called for
>> all open file handles once and only once before it returns. I think this
>> is where the problem comes from.
> See above. For d_close it is impossible, for cdevpriv dtr it is already
> there by design.
>
Yes, cdevpriv_dtr will wait for the final close() from user-space
unfortunately. Or am I mistaken?
--HPS
More information about the freebsd-hackers
mailing list