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

Method GetFile

pkg/sentry/kernel/task.go:801–804  ·  view source on GitHub ↗

GetFile is a convenience wrapper for t.FDTable().Get. Precondition: same as FDTable.Get.

(fd int32)

Source from the content-addressed store, hash-verified

799//
800// Precondition: same as FDTable.Get.
801func (t *Task) GetFile(fd int32) *vfs.FileDescription {
802 f, _ := t.fdTable.Get(fd)
803 return f
804}
805
806// NewFDs is a convenience wrapper for t.FDTable().NewFDs.
807//

Callers 15

NetworkNamespaceByFDMethod · 0.95
PIDFDGetFDMethod · 0.95
pidFDFromFDNumMethod · 0.95
EpollCtlFunction · 0.80
waitEpollFunction · 0.80
submitCallbackFunction · 0.80
initReadinessFunction · 0.80
doSelectFunction · 0.80
getTaskPathOperationFunction · 0.80
IoctlFunction · 0.80
DupFunction · 0.80
Dup2Function · 0.80

Calls 1

GetMethod · 0.65

Tested by

no test coverage detected