Function panda_sys::qht_insert[][src]

pub unsafe extern "C" fn qht_insert(
    ht: *mut qht,
    p: *mut c_void,
    hash: u32
) -> bool
Expand description

qht_insert - Insert a pointer into the hash table @ht: QHT to insert to @p: pointer to be inserted @hash: hash corresponding to @p

Attempting to insert a NULL @p is a bug. Inserting the same pointer @p with different @hash values is a bug.

In case of successful operation, smp_wmb() is implied before the pointer is inserted into the hash table.

Returns true on success. Returns false if the @p-@hash pair already exists in the hash table.