Skyld AV  0.6
On access virus scanning for Linux
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
listmounts.c File Reference

List mounts. More...

#include <libmount/libmount.h>
#include <stdio.h>
#include "listmounts.h"
Include dependency graph for listmounts.c:

Go to the source code of this file.

Functions

int listmountinit ()
 
int listmountnext (const char **dir, const char **type)
 
void listmountfinalize ()
 

Variables

static struct libmnt_context * cxt = NULL
 
static struct libmnt_table * tb = NULL
 
static struct libmnt_iter * itr = NULL
 

Detailed Description

List mounts.

Definition in file listmounts.c.

Function Documentation

void listmountfinalize ( )

Finalizes enumeration of mounts.

Definition at line 77 of file listmounts.c.

Here is the caller graph for this function:

int listmountinit ( )

Initializes enumeration of mounts.

Returns
success = 0

Definition at line 38 of file listmounts.c.

Here is the caller graph for this function:

int listmountnext ( const char **  dir,
const char **  type 
)

Gets next mount.

Parameters
dirdirectory
typetype of mount
Returns
success = 0

Definition at line 63 of file listmounts.c.

Here is the caller graph for this function:

Variable Documentation

struct libmnt_context* cxt = NULL
static

Definition at line 29 of file listmounts.c.

struct libmnt_iter* itr = NULL
static

Definition at line 31 of file listmounts.c.

struct libmnt_table* tb = NULL
static

Definition at line 30 of file listmounts.c.