diff options
| author | Mark Johnston <markjdb@gmail.com> | 2021-11-19 18:08:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-20 00:08:23 +0100 |
| commit | 4eb20a4ea7cf78f84d015cefa160aff806c35ec7 (patch) | |
| tree | 8e65d53402824055efedd784671fabba29a19226 /sys/freebsd/filemon.txt | |
| parent | 780b27623e2c0284dfb0c8e0392463d1eef00e92 (diff) | |
Add filemon(4) ioctl definitions for FreeBSD (#2887)
* sys/freebsd: add definitions for filemon(4)
* pkg/build: load filemon.ko on FreeBSD
Diffstat (limited to 'sys/freebsd/filemon.txt')
| -rw-r--r-- | sys/freebsd/filemon.txt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/freebsd/filemon.txt b/sys/freebsd/filemon.txt new file mode 100644 index 000000000..7f405814d --- /dev/null +++ b/sys/freebsd/filemon.txt @@ -0,0 +1,13 @@ +# Copyright 2021 syzkaller project authors. All rights reserved. +# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +include <ioccom.h> +include <fcntl.h> +include <dev/filemon/filemon.h> + +resource fd_filemon[fd] + +openat$filemon(fd const[AT_FDCWD], file ptr[in, string["/dev/filemon"]], flags flags[open_flags], mode const[0]) fd_filemon + +ioctl$FILEMON_SET_FD(fd fd_filemon, cmd const[FILEMON_SET_FD], arg ptr[in, fd]) +ioctl$FILEMON_SET_PID(fd fd_filemon, cmd const[FILEMON_SET_PID], arg ptr[in, pid]) |
