MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / allocate_vsock_cid

Function allocate_vsock_cid

crates/openshell-driver-vm/src/gpu.rs:235–237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233}
234
235pub fn allocate_vsock_cid() -> u32 {
236 NEXT_VSOCK_CID.fetch_add(1, Ordering::Relaxed)
237}
238
239/// Generate a locally-administered MAC from sandbox ID using FNV-1a.
240pub fn mac_from_sandbox_id(sandbox_id: &str) -> [u8; 6] {

Callers 4

build_vm_launch_planMethod · 0.85
vsock_cid_incrementsFunction · 0.85

Calls

no outgoing calls

Tested by 2

vsock_cid_incrementsFunction · 0.68