counterd_kcom.h File Reference

Routines related to KCOM. More...

#include <isc/eventlib.h>

Go to the source code of this file.

Functions

int counterd_kcom_init (evContext ctx)
int counterd_add_data (void *data, uint32_t data_len)
int counterd_get_data (void *data, uint32_t data_len)


Detailed Description

Routines related to KCOM.

Function to initialize KCOM and to do GENCFG

Definition in file counterd_kcom.h.


Function Documentation

int counterd_add_data ( void *  data,
uint32_t  data_len 
)

Add or replace some data in KCOM GENCFG

Parameters:
[in] data data to add
[in] data_len length in bytes of data
Returns:
KCOM_OK (0) on success, or a KCOM error on failure

Definition at line 159 of file counterd_kcom.c.

References COUNTERD_GENCFG_KEY, and COUNTERD_MINOR_NUM.

Referenced by get_message(), and reset_message().

int counterd_get_data ( void *  data,
uint32_t  data_len 
)

Get some data from KCOM GENCFG

Parameters:
[in] data pointer of where to copy the data
[in] data_len max number of bytes to copy to into data
Returns:
number of bytes of data read or -1 on error

Definition at line 245 of file counterd_kcom.c.

References COUNTERD_GENCFG_KEY, and COUNTERD_MINOR_NUM.

Referenced by reset_message().

int counterd_kcom_init ( evContext  ctx  ) 

Init KCOM library so we can use it

Parameters:
[in] ctx event context for app
Returns:
KCOM_OK (0) on success, or a KCOM error on failure

Definition at line 84 of file counterd_kcom.c.

References counterd_gencfg_async(), and COUNTERD_MINOR_NUM.

Referenced by counterd_init().


2007-2009 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are registered trademarks of Juniper Networks, Inc. in the United States and other countries. All other trademarks, service marks, registered trademarks, or registered service marks are the property of their respective owners.
Generated on Sun May 30 20:26:53 2010 for SDK Your Net Corporation Counter Example 1.0 by Doxygen 1.5.1