libexplain  1.4.D001
Functions
libexplain/buffer/path_to_pid.h File Reference

Go to the source code of this file.

Functions

int explain_buffer_path_to_pid (struct explain_string_buffer_t *sb, const char *path)
int explain_buffer_fildes_to_pid (struct explain_string_buffer_t *sb, int fildes)
int explain_buffer_path_users (struct explain_string_buffer_t *sb, const char *path, const char *caption)

Function Documentation

int explain_buffer_fildes_to_pid ( struct explain_string_buffer_t sb,
int  fildes 
)

The explain_buffer_fildes_to_pid function may be used to inject the PIDs of processes that have the given file open.

Parameters:
sbThe string buffer to write the PIDs into
fildesopen file descrptor of file of interest
Returns:
number of uses

Definition at line 249 of file path_to_pid.c.

int explain_buffer_path_to_pid ( struct explain_string_buffer_t sb,
const char *  path 
)

The explain_buffer_path_to_pid function may be used to inject the PIDs of processes that have the given file open.

Parameters:
sbThe string buffer to write the PIDs into
pathThe path of the file of interest
Returns:
number of uses

Definition at line 238 of file path_to_pid.c.

int explain_buffer_path_users ( struct explain_string_buffer_t sb,
const char *  path,
const char *  caption 
)

The explain_buffer_path_users function may be used to inject the PIDs of processes that have the given file open. The caption is inserted, too.

Parameters:
sbThe string buffer to write the PIDs into
pathThe path of the file of interest
captionThe name of the argument being checked, "oldpath", "newpath", "pathname" or similar.
Returns:
number of uses

Definition at line 260 of file path_to_pid.c.