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

Method ToLinux

pkg/syserr/syserr.go:121–126  ·  view source on GitHub ↗

ToLinux converts the Error to a Linux ABI error that can be returned to the application.

()

Source from the content-addressed store, hash-verified

119// ToLinux converts the Error to a Linux ABI error that can be returned to the
120// application.
121func (e *Error) ToLinux() errno.Errno {
122 if e.noTranslation {
123 panic(fmt.Sprintf("No Linux ABI translation available for %q", e.message))
124 }
125 return e.errno
126}
127
128// AnnotatedError represents an error with an additional message.
129type AnnotatedError struct {

Callers 7

initReadinessFunction · 0.45
pollBlockFunction · 0.45
ReadEventsMethod · 0.45
LoadFunction · 0.45
sockErrCmsgToLinuxFunction · 0.45
GetSockOptSocketFunction · 0.45
DumpErrorMessageFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected