MCPcopy
hub / github.com/google/gvisor / fileType

Method fileType

pkg/sentry/fsimpl/gofer/gofer.go:1250–1252  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1248}
1249
1250func (i *inode) fileType() uint32 {
1251 return i.mode.Load() & linux.S_IFMT
1252}
1253
1254func (d *dentry) statTo(stat *linux.Statx) {
1255 stat.Mask = linux.STATX_TYPE | linux.STATX_MODE | linux.STATX_NLINK | linux.STATX_UID | linux.STATX_GID | linux.STATX_ATIME | linux.STATX_MTIME | linux.STATX_CTIME | linux.STATX_INO | linux.STATX_SIZE | linux.STATX_BLOCKS

Callers 15

isRegularFileMethod · 0.95
isSocketMethod · 0.95
isSymlinkMethod · 0.95
getXattrMethod · 0.45
setXattrMethod · 0.45
listXattrMethod · 0.45
removeXattrMethod · 0.45
doRevalidationDirectfsFunction · 0.45
newSpecialFileFDFunction · 0.45
openMethod · 0.45
openSpecialFileMethod · 0.45

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected