Home
last modified time | relevance | path

Searched refs:nm_vi_indices (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/dev/netmap/
H A Dnetmap_freebsd.c535 } nm_vi_indices; variable
542 nm_vi_indices.index[i] = i; in nm_os_vi_init_index()
543 nm_vi_indices.active = 0; in nm_os_vi_init_index()
544 mtx_init(&nm_vi_indices.lock, "nm_vi_indices_lock", NULL, MTX_DEF); in nm_os_vi_init_index()
553 mtx_lock(&nm_vi_indices.lock); in nm_vi_get_index()
554 ret = nm_vi_indices.active == NM_VI_MAX ? -1 : in nm_vi_get_index()
555 nm_vi_indices.index[nm_vi_indices.active++]; in nm_vi_get_index()
556 mtx_unlock(&nm_vi_indices.lock); in nm_vi_get_index()
565 mtx_lock(&nm_vi_indices.lock); in nm_vi_free_index()
566 lim = nm_vi_indices.active; in nm_vi_free_index()
[all …]