datapath-windows/ovsext/User.c
/*
 * ---------------------------------------------------------------------------
 * Given a pid and an instance. This API adds instance to pidHashArray.
 * pidHashLock must be acquired before calling this API.
 * ---------------------------------------------------------------------------
 */
Given a pid and an instance. This API adds instance to pidHashArray.
pidHashLock must be acquired before calling this API.
Given a pid and an instance . This API adds instance to pidHashArray . pidHashLock must be acquired before calling this API .
VOID
OvsAddPidInstance(POVS_SWITCH_CONTEXT switchContext, UINT32 pid,
                  POVS_OPEN_INSTANCE instance)
{
    PLIST_ENTRY head;
    UINT32 hash = OvsJhashBytes((const VOID *)&pid, sizeof(pid),
                                OVS_HASH_BASIS);
    head = &(switchContext->pidHashArray[hash & OVS_PID_MASK]);
    InsertHeadList(head, &(instance->pidLink));
}
VOID OvsAddPidInstance ( POVS_SWITCH_CONTEXT switchContext , UINT32 pid , POVS_OPEN_INSTANCE instance ) { PLIST_ENTRY head ; UINT32 hash = OvsJhashBytes ( ( const VOID * ) & pid , sizeof ( pid ) , OVS_HASH_BASIS ) ; head = & ( switchContext -> pidHashArray [ hash & OVS_PID_MASK ] ) ; InsertHeadList ( head , & ( instance -> pidLink ) ) ; }
Given a pid and an instance.
Given a pid and an instance .