Re: ttydev_cdevsw has no d_purge

看板FB_current作者時間13年前 (2012/08/06 17:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串13/28 (看更多)
Hi Hans, 2012/8/5 Hans Petter Selasky <hselasky@c2i.net>: > When can the previous unit number be re-used? Is there a callback for this? The unit number can be reused after .tsw_free() has been called. > When can the USB serial code assume that it will not be called again and that > all callbacks are drained? The tty_rel_gone() function has to be called while holding the TTY lock. Also, all calls done by the TTY layer into the driver also hold the TTY lock and will assert that the TTY is not in the `gone' state. So you can safely assume that you will not get any driver calls as soon as tty_rel_gone() returns. I hope this helps. If you have any further questions, let me know! -- Ed Schouten <ed@80386.nl> _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
文章代碼(AID): #1G7uyIxX (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1G7uyIxX (FB_current)