pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
procfs.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <ctype.h>
Include dependency graph for procfs.c:

Go to the source code of this file.

Functions

pid_t pcmk__procfs_pid_of (const char *name)
 
unsigned int pcmk__procfs_num_cores (void)
 
int pcmk__procfs_pid2path (pid_t pid, char path[], size_t path_size)
 
bool pcmk__procfs_has_pids (void)
 
DIR * pcmk__procfs_fd_dir (void)
 
void pcmk__sysrq_trigger (char t)
 
bool pcmk__throttle_cib_load (const char *server, float *load)
 
bool pcmk__throttle_load_avg (float *load)
 

Function Documentation

◆ pcmk__procfs_fd_dir()

DIR * pcmk__procfs_fd_dir ( void )

Definition at line 259 of file procfs.c.

◆ pcmk__procfs_has_pids()

bool pcmk__procfs_has_pids ( void )

Definition at line 235 of file procfs.c.

◆ pcmk__procfs_num_cores()

unsigned int pcmk__procfs_num_cores ( void )

Definition at line 165 of file procfs.c.

◆ pcmk__procfs_pid2path()

int pcmk__procfs_pid2path ( pid_t pid,
char path[],
size_t path_size )

Definition at line 203 of file procfs.c.

◆ pcmk__procfs_pid_of()

pid_t pcmk__procfs_pid_of ( const char * name)

Definition at line 127 of file procfs.c.

◆ pcmk__sysrq_trigger()

void pcmk__sysrq_trigger ( char t)

Definition at line 282 of file procfs.c.

◆ pcmk__throttle_cib_load()

bool pcmk__throttle_cib_load ( const char * server,
float * load )

Definition at line 298 of file procfs.c.

◆ pcmk__throttle_load_avg()

bool pcmk__throttle_load_avg ( float * load)

Definition at line 431 of file procfs.c.