summaryrefslogtreecommitdiffstats
path: root/sys/contrib/dev/acpica/common
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2009-06-01 21:32:52 +0000
committerjhb <jhb@FreeBSD.org>2009-06-01 21:32:52 +0000
commitfea04a3fd158d65e9ffd20e50e38364d82b85c44 (patch)
tree3173f83adb95e5298ee26ee3bdedf7f6b4746d49 /sys/contrib/dev/acpica/common
parent904747c9f98f0e11c35daca161c7253a12c080f6 (diff)
downloadFreeBSD-src-fea04a3fd158d65e9ffd20e50e38364d82b85c44.zip
FreeBSD-src-fea04a3fd158d65e9ffd20e50e38364d82b85c44.tar.gz
Add an extension to the character device interface that allows character
device drivers to use arbitrary VM objects to satisfy individual mmap() requests. - A new d_mmap_single(cdev, &foff, objsize, &object, prot) callback is added to cdevsw. This function is called for each mmap() request. If it returns ENODEV, then the mmap() request will fall back to using the device's device pager object and d_mmap(). Otherwise, the method can return a VM object to satisfy this entire mmap() request via *object. It can also modify the starting offset into this object via *foff. This allows device drivers to use the file offset as a cookie to identify specific VM objects. - vm_mmap_vnode() has been changed to call vm_mmap_cdev() directly when mapping V_CHR vnodes. This avoids duplicating all the cdev mmap handling code and simplifies some of vm_mmap_vnode(). - D_VERSION has been bumped to D_VERSION_02. Older device drivers using D_VERSION_01 are still supported. MFC after: 1 month
Diffstat (limited to 'sys/contrib/dev/acpica/common')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud