github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/freebsd/fh.txt (about) 1 # Copyright 2020 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 <sys/param.h> 5 include <sys/mount.h> 6 include <sys/stat.h> 7 include <unistd.h> 8 include <fcntl.h> 9 10 getfh(file ptr[in, filename], fhp ptr[out, fhandle]) 11 lgetfh(file ptr[in, filename], fhp ptr[out, fhandle]) 12 getfhat(fd fd, file ptr[in, filename], fhp ptr[out, fhandle], flags flags[getfhat_flags]) 13 14 fhlink(fhp ptr[in, fhandle], to ptr[in, filename]) 15 fhlinkat(fhp ptr[in, fhandle], fd fd, to ptr[in, filename]) 16 17 fhopen(fhp ptr[in, fhandle], flags flags[open_flags]) fd 18 fhstat(fhp ptr[in, fhandle], statbuf ptr[out, stat]) 19 fhstatfs(fhp ptr[in, fhandle], buf ptr[out, statfs]) 20 freebsd11_fhstatfs(fhp ptr[in, fhandle], buf ptr[out, freebsd11_statfs]) 21 22 fhreadlink(fhp ptr[in, fhandle], buf buffer[out], bufsize len[buf]) 23 24 fsid { 25 val array[int32, 2] 26 } 27 28 fid { 29 fid_len int16 30 fid_data0 int16 31 fid_data array[int8, MAXFIDSZ] 32 } 33 34 fhandle { 35 fh_fsid fsid 36 fh_fid fid 37 } 38 39 getfhat_flags = AT_SYMLINK_NOFOLLOW