Re: Re: HEADS UP - DEVFS ON MASTER

看板DFBSD_kernel作者時間16年前 (2009/08/06 02:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串8/8 (看更多)
:>> - TAPDEV_MAJOR(st.st_rdev) == TAP_CDEV_MAJOR) { :>> - *tap_unit = TAPDEV_MINOR(st.st_rdev); :>> - :>> + sscanf(tap_dev, "/dev/tap%d", tap_unit) == 1) { :>> /* :... : :Oh, I won't call that patch a `fix', it was just a bandaid for me. :However, just opening /dev/tap results in a kernel panic (at least :on an unpatched vkernel). Ok, let me work on this a bit. I will commit a slightly different change which uses fdevname() and extracts the unit from that. This way the code will work with future use of the cloning interface. :vkernel# dd if=/dev/tap of=/dev/null count=0 : : :Fatal trap 12: page fault while in kernel mode :mp_lock = 00000000; cpuid = 0 :fault virtual address = 0x44 I'll get this fixed today. -Matt
文章代碼(AID): #1AUSZeAw (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #1AUSZeAw (DFBSD_kernel)