suricata
util-sysfs.c File Reference
#include "util-sysfs.h"
Include dependency graph for util-sysfs.c:

Go to the source code of this file.

Macros

#define SYSFS_MAX_FILENAME_LEN   (SYSFS_MAX_FILENAME_SIZE + 5)
 

Functions

TmEcode SysFsWriteValue (const char *path, int64_t value)
 

Detailed Description

Author
Richard McConnell richa.nosp@m.rd_m.nosp@m.cconn.nosp@m.ell@.nosp@m.rapid.nosp@m.7.co.nosp@m.m

Sysfs utility file

Definition in file util-sysfs.c.

Macro Definition Documentation

◆ SYSFS_MAX_FILENAME_LEN

#define SYSFS_MAX_FILENAME_LEN   (SYSFS_MAX_FILENAME_SIZE + 5)

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

Function Documentation

◆ SysFsWriteValue()

TmEcode SysFsWriteValue ( const char *  path,
int64_t  value 
)

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

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

Here is the call graph for this function: