MCPcopy Create free account
hub / github.com/containerd/cgroups / acceptBlock

Function acceptBlock

cgroup2/devicefilter.go:190–200  ·  view source on GitHub ↗
(accept bool)

Source from the content-addressed store, hash-verified

188}
189
190func acceptBlock(accept bool) asm.Instructions {
191 v := int32(0)
192 if accept {
193 v = 1
194 }
195 return []asm.Instruction{
196 // R0 <- v
197 asm.Mov.Imm32(asm.R0, v),
198 asm.Return(),
199 }
200}

Callers 1

appendDeviceMethod · 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…