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

Method TestOnlySetGlobalInit

pkg/sentry/kernel/kernel.go:1839–1841  ·  view source on GitHub ↗

TestOnlySetGlobalInit sets the thread group with ID 1 in the root PID namespace.

(tg *ThreadGroup)

Source from the content-addressed store, hash-verified

1837
1838// TestOnlySetGlobalInit sets the thread group with ID 1 in the root PID namespace.
1839func (k *Kernel) TestOnlySetGlobalInit(tg *ThreadGroup) {
1840 k.globalInit = tg
1841}
1842
1843// ApplicationCores returns the number of CPUs visible to sandboxed
1844// applications.

Callers 1

BootFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected