github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/freebsd/dev_md.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 # Autogenerated by sys2syz 4 5 include <sys/types.h> 6 include <ioccom.h> 7 include <mdioctl.h> 8 include <fcntl.h> 9 10 resource fd_md[fd] 11 12 openat$md(fd const[AT_FDCWD], file ptr[in, string["/dev/mdctl"]], flags flags[open_flags], mode const[0]) fd_md 13 14 ioctl$MDIOCATTACH(fd fd_md, cmd const[MDIOCATTACH], arg ptr[inout, md_ioctl]) 15 ioctl$MDIOCDETACH(fd fd_md, cmd const[MDIOCDETACH], arg ptr[inout, md_ioctl]) 16 ioctl$MDIOCQUERY(fd fd_md, cmd const[MDIOCQUERY], arg ptr[inout, md_ioctl]) 17 ioctl$MDIOCRESIZE(fd fd_md, cmd const[MDIOCRESIZE], arg ptr[inout, md_ioctl]) 18 19 md_ioctl { 20 md_version int32 21 md_unit int32 22 md_type flags[md_types_flags, int32] 23 md_file ptr[in, filename] 24 md_mediasize int64 25 md_sectorsize int32 26 md_options int32 27 md_base int64 28 md_fwheads int32 29 md_fwsectors int32 30 md_label ptr[in, string] 31 md_pad array[int32, 96] 32 } 33 34 md_types_flags = MD_MALLOC, MD_PRELOAD, MD_VNODE, MD_SWAP, MD_NULL