NT_EventOpen

Reference Documentation

product_line_custom
Napatech SmartNIC
category
Reference Information
int NT_EventOpen ( NtEventStream_t * hStream,
    const char * name,
    uint32_t eventMask
  )    

Opens an event stream and initializes event queues, etc.

This function must be called before using the events. The necessary stream, lists, mutexes and semaphores are initialized and created.

The source of event is selected by the eventMask. This could be either a single event source or all event sources. See NtEventSource_e for the different event sources.

Parameters

  hStream

Pointer to the stream handle

[in] name

A friendly name of the stream

[in] eventMask

NtEventSource_e - A bitmask defining the sources of events to receive

Return values

==

NT_SUCCESS: Success

!=

NT_SUCCESS: Error

Definition at line 300 of file stream_event.h.

Referenced by main().