Skip to main content

try_silo_id_for_task

Function try_silo_id_for_task 

Source
pub fn try_silo_id_for_task(task_id: TaskId) -> Option<u32>
Expand description

Return silo identity + memory accounting for a task, if the task belongs to a silo.

Tuple layout:

  • silo id (u32)
  • optional label
  • current usage bytes
  • configured minimum bytes
  • configured maximum bytes (0 = unlimited) Best-effort, non-blocking silo lookup for allocator-internal accounting.

Uses try_lock so that callers running under IRQs-disabled conditions (e.g. inside vmalloc) do not deadlock when SILO_MANAGER is already held by an outer call on the same CPU. Returns None if the lock is contended or if the task is not registered in any silo.