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

Function WithLimitSet

pkg/sentry/contexttest/contexttest.go:156–158  ·  view source on GitHub ↗

WithLimitSet returns a copy of ctx carrying l.

(ctx context.Context, l *limits.LimitSet)

Source from the content-addressed store, hash-verified

154
155// WithLimitSet returns a copy of ctx carrying l.
156func WithLimitSet(ctx context.Context, l *limits.LimitSet) context.Context {
157 return limitContext{ctx, l}
158}
159
160type limitContext struct {
161 context.Context

Callers 2

TestBrkDataLimitUpdatesFunction · 0.92
runTestFunction · 0.92

Calls

no outgoing calls

Tested by 2

TestBrkDataLimitUpdatesFunction · 0.74
runTestFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…