ARPDAS_QNX6 1.0
Defines | Functions | Variables
subbusd.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/iofunc.h>
#include <sys/dispatch.h>
#include <fcntl.h>
#include <ctype.h>
#include <signal.h>
#include "nortlib.h"
#include "company.h"
#include "subbusd_int.h"
#include "nl_assert.h"
#include "oui.h"
Include dependency graph for subbusd.c:

Go to the source code of this file.

Defines

#define DEVNAME   "/dev/" COMPANY "/subbus"

Functions

static int subbus_write (resmgr_context_t *ctp, io_write_t *msg, RESMGR_OCB_T *ocb)
static int subbus_io_msg (resmgr_context_t *ctp, io_msg_t *msg, RESMGR_OCB_T *ocb)
void sigint_handler (int sig)
int main (int argc, char **argv)

Variables

static resmgr_connect_funcs_t connect_funcs
static resmgr_io_funcs_t io_funcs
static iofunc_attr_t attr
static int SB_Shutdown = 0

Define Documentation

#define DEVNAME   "/dev/" COMPANY "/subbus"

Definition at line 21 of file subbusd.c.

Referenced by main().


Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 87 of file subbusd.c.

References attr, connect_funcs, DEVNAME, dpp, init_subbus(), io_funcs, nl_error, resmgr_attr, sb_cache_init(), SB_Shutdown, shutdown_subbus(), sigint_handler(), subbus_io_msg(), and subbus_write().

Here is the call graph for this function:

void sigint_handler ( int  sig)

Definition at line 83 of file subbusd.c.

References SB_Shutdown.

Referenced by main().

Here is the caller graph for this function:

static int subbus_io_msg ( resmgr_context_t *  ctp,
io_msg_t *  msg,
RESMGR_OCB_T *  ocb 
) [static]
static int subbus_write ( resmgr_context_t *  ctp,
io_write_t *  msg,
RESMGR_OCB_T *  ocb 
) [static]

Definition at line 25 of file subbusd.c.

References SB_Shutdown.

Referenced by main().

Here is the caller graph for this function:


Variable Documentation

iofunc_attr_t attr [static]

Definition at line 20 of file subbusd.c.

Referenced by cis_shutdown_rdr(), main(), and nlph_cmdclt_init().

resmgr_connect_funcs_t connect_funcs [static]

Definition at line 18 of file subbusd.c.

Referenced by main().

resmgr_io_funcs_t io_funcs [static]

Definition at line 19 of file subbusd.c.

Referenced by main().

int SB_Shutdown = 0 [static]

Definition at line 23 of file subbusd.c.

Referenced by main(), sigint_handler(), subbus_io_msg(), and subbus_write().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines