suricata
util-sysfs.h File Reference
#include "util-error.h"
#include "util-debug.h"
Include dependency graph for util-sysfs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYSFS_MAX_FILENAME_SIZE   251
 

Functions

TmEcode SysFsWriteValue (const char *path, int64_t value)
 

Detailed Description

Macro Definition Documentation

◆ SYSFS_MAX_FILENAME_SIZE

#define SYSFS_MAX_FILENAME_SIZE   251

Definition at line 33 of file util-sysfs.h.

Function Documentation

◆ SysFsWriteValue()

TmEcode SysFsWriteValue ( const char *  path,
int64_t  value 
)

Definition at line 28 of file util-sysfs.c.

References len, SCLogError, SCLogWarning, SCReturnInt, strlcat(), SYSFS_MAX_FILENAME_SIZE, TM_ECODE_FAILED, and TM_ECODE_OK.

Here is the call graph for this function: