MCPcopy Index your code
hub / github.com/google/gvisor / FromLinux

Function FromLinux

pkg/sentry/limits/linux.go:65–70  ·  view source on GitHub ↗

FromLinux maps linux rlimit values to sentry Limits, being careful to handle infinities.

(rl uint64)

Source from the content-addressed store, hash-verified

63// FromLinux maps linux rlimit values to sentry Limits, being careful to handle
64// infinities.
65func FromLinux(rl uint64) uint64 {
66 if rl == linux.RLimInfinity {
67 return Infinity
68 }
69 return rl
70}
71
72// ToLinux maps sentry Limits to linux rlimit values, being careful to handle
73// infinities.

Callers 3

toLimitMethod · 0.92
initDefaultsMethod · 0.92
NewLinuxLimitSetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…