Re: ttydev_cdevsw has no d_purge

看板FB_current作者時間13年前 (2012/08/09 05:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串20/28 (看更多)
Hi Hans, 2012/8/8 Hans Petter Selasky <hselasky@c2i.net>: > Are you sure that the new softc won't be used in any callbacks when > tty_rel_gone() is called, except for tsw_free() ? Yes. Otherwise you would have already seen a kernel panic. See /sys/sys/ttydevsw.h; it has assertions on the locking. > It is like a drain state, where a unit is collected for free, and then > committed to free state when the tsw_free() is called. In the [unlocked] time > in between the unit cannot be re-used. How is this different from calling alloc/free directly? Why would it need to go through this `drain' state? -- 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): #1G8jEEW0 (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1G8jEEW0 (FB_current)