github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/freebsd/filemon.txt (about)

     1  # Copyright 2021 syzkaller project authors. All rights reserved.
     2  # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
     3  
     4  include <ioccom.h>
     5  include <fcntl.h>
     6  include <dev/filemon/filemon.h>
     7  
     8  resource fd_filemon[fd]
     9  
    10  openat$filemon(fd const[AT_FDCWD], file ptr[in, string["/dev/filemon"]], flags flags[open_flags], mode const[0]) fd_filemon
    11  
    12  ioctl$FILEMON_SET_FD(fd fd_filemon, cmd const[FILEMON_SET_FD], arg ptr[in, fd])
    13  ioctl$FILEMON_SET_PID(fd fd_filemon, cmd const[FILEMON_SET_PID], arg ptr[in, pid])