Seccomp.SeccompAction.to_u32: def of bend-osdev-bpf@0.1.0.0 Import: import bend-osdev-bpf@0.1.0.0/seccomp.bend as Seccomp Lines 108-126 of bend-osdev-bpf@0.1.0.0/seccomp.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&start_line=108&end_line=126 import Base # the SECCOMP_RET_* value of an action, with the low 16 bits of its data def SeccompAction.to_u32(a: SeccompAction) -> U32: match a: case SeccompKillProcess{}: 2147483648 case SeccompKillThread{}: 0 case SeccompTrap{d}: U32.or(196608, U32.and(65535, d)) case SeccompErrno{d}: U32.or(327680, U32.and(65535, d)) case SeccompUserNotif{}: 2143289344 case SeccompTrace{d}: U32.or(2146435072, U32.and(65535, d)) case SeccompLog{}: 2147221504 case SeccompAllow{}: 2147418112 Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.or https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&name=SeccompAction