Date: Sat, 13 Nov 2004 23:21:54 +0000 (UTC) From: Poul-Henning Kamp <phk@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/fs/devfs devfs_vnops.c Message-ID: <200411132321.iADNLsZN032634@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
phk 2004-11-13 23:21:54 UTC FreeBSD src repository Modified files: sys/fs/devfs devfs_vnops.c Log: Add the devfs_fp_check() function which helps us get from a struct file to a cdev and a devsw, doing all the relevant checks along the way. Add the check to see if fp->f_vnode->v_rdev differs from our cached fp->f_data copy of our cdev. If it does the device was revoked and we return ENXIO. Revision Changes Path 1.83 +34 -70 src/sys/fs/devfs/devfs_vnops.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200411132321.iADNLsZN032634>