CVSROOT: /cvs Module name: src Changes by: kette...@cvs.openbsd.org 2018/07/03 14:40:25
Modified files: sys/dev/pci/drm: drm_linux.c sys/kern : vfs_syscalls.c vfs_vnops.c sys/sys : file.h Log message: Add a new so_seek member to "struct file" such that we can have seekable files that aren't vnodes. Move the vnode-specific code into its own function. Add an implementation for the "DMA buffers" that can be used by DRI3/prime code to find out the size of the graphics buffer. This implementation is very limited and only supports offset 0 and only for SEEK_SET and SEEK_END. This doesn't really make sense; implementing stat(2) would be a more obvious choice. But this is what Linux does. ok guenther@, visa@