pacemaker  2.1.8-3980678f03
Scalable High-Availability cluster resource manager
Macros | Functions
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.

Macros

#define _GNU_SOURCE
 

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)
 

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

Definition at line 13 of file procfs.c.

Function Documentation

◆ pcmk__procfs_has_pids()

bool pcmk__procfs_has_pids ( void  )

Definition at line 211 of file procfs.c.

◆ pcmk__procfs_num_cores()

unsigned int pcmk__procfs_num_cores ( void  )

Definition at line 145 of file procfs.c.

◆ pcmk__procfs_pid2path()

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

Definition at line 179 of file procfs.c.

◆ pcmk__procfs_pid_of()

pid_t pcmk__procfs_pid_of ( const char *  name)

Definition at line 111 of file procfs.c.