aboutsummaryrefslogtreecommitdiffstats
path: root/sys/freebsd
diff options
context:
space:
mode:
authorMark Johnston <markjdb@gmail.com>2021-11-19 18:08:23 -0500
committerGitHub <noreply@github.com>2021-11-20 00:08:23 +0100
commit4eb20a4ea7cf78f84d015cefa160aff806c35ec7 (patch)
tree8e65d53402824055efedd784671fabba29a19226 /sys/freebsd
parent780b27623e2c0284dfb0c8e0392463d1eef00e92 (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')
-rw-r--r--sys/freebsd/filemon.txt13
-rw-r--r--sys/freebsd/filemon.txt.const7
2 files changed, 20 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])
diff --git a/sys/freebsd/filemon.txt.const b/sys/freebsd/filemon.txt.const
new file mode 100644
index 000000000..f531a8f6d
--- /dev/null
+++ b/sys/freebsd/filemon.txt.const
@@ -0,0 +1,7 @@
+# Code generated by syz-sysgen. DO NOT EDIT.
+arches = 386, amd64
+AT_FDCWD = 18446744073709551516
+FILEMON_SET_FD = 3221508865
+FILEMON_SET_PID = 3221508866
+SYS_ioctl = 54
+SYS_openat = 499