Changeset 2faa57e for lib/format_dag25.c


Ignore:
Timestamp:
03/14/08 16:50:58 (14 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
e632f2f
Parents:
a9a91d1
Message:
  • Added a separate .h file for the various ERF types as newer ERF types aren't specified in the DAG 2.4 drivers
  • ERF traces should now return a Option Unavailable error for any unsupported cconfig options, rather than Unknown Option
  • Added a bit of extra documentation to the new thread/mutex related code added to format_dag25.c
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/format_dag25.c

    ra9a91d1 r2faa57e  
    4646
    4747#include <sys/mman.h>
     48/* XXX: Windows doesn't have pthreads, but this code doesn't compile under
     49 * Windows anyway so we'll worry about this more later :] */
     50#include <pthread.h>
    4851
    4952
     
    5962#  endif
    6063#  include <sys/ioctl.h>
    61 #  include <pthread.h>
    6264#endif
    6365
     
    9799struct dag_dev_t *open_dags = NULL;
    98100
     101/* NOTE: This function assumes the open_dag_mutex is held by the caller */
    99102static struct dag_dev_t *dag_find_open_device(char *dev_name) {
    100103        struct dag_dev_t *dag_dev;
     
    117120}
    118121
     122/* NOTE: This function assumes the open_dag_mutex is held by the caller */
    119123static void dag_close_device(struct dag_dev_t *dev) {
    120124        /* Need to remove from the device list */
     
    138142}
    139143
     144/* NOTE: This function assumes the open_dag_mutex is held by the caller */
    140145static struct dag_dev_t *dag_open_device(libtrace_t *libtrace, char *dev_name) {
    141146        struct stat buf;
Note: See TracChangeset for help on using the changeset viewer.