nfs-ganesha 1.4
Functions

nodelist_internals.h File Reference

#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include "nodelist.h"

Go to the source code of this file.

Functions

int nodelist_nodelist_non_recursive_intersects (nodelist_nodelist_t *first_list, nodelist_nodelist_t *second_list)
 Check if two nodes list intersect in a non recursive way.
int nodelist_rangelist_includes (nodelist_rangelist_t *a1, nodelist_rangelist_t *a2)
int nodelist_range_intersects (nodelist_range_t *r1, nodelist_range_t *r2)
 Indicate if it exists an non empty intersection between the two input ranges.
int nodelist_rangelist_intersects (nodelist_rangelist_t *a1, nodelist_rangelist_t *a2)
int nodelist_nodelist_remove_nodes (nodelist_nodelist_t *nodelist, char *list)
int nodelist_rangelist_add_rangelist (nodelist_rangelist_t *array, nodelist_rangelist_t *rlin)
int nodelist_rangelist_remove_rangelist (nodelist_rangelist_t *array, nodelist_rangelist_t *rlin)

Function Documentation

int nodelist_nodelist_non_recursive_intersects ( nodelist_nodelist_t first_list,
nodelist_nodelist_t second_list 
)

Check if two nodes list intersect in a non recursive way.

Parameters:
first_listfirst nodes list
second_listsecond nodes list
Return values:
0nodes lists don't intersect
1nodes lists intersect

Definition at line 51 of file nodelist.c.

int nodelist_nodelist_remove_nodes ( nodelist_nodelist_t nodelist,
char *  list 
)

Definition at line 759 of file nodelist.c.

int nodelist_rangelist_add_rangelist ( nodelist_rangelist_t array,
nodelist_rangelist_t rlin 
)

Definition at line 287 of file nodelist_range.c.

int nodelist_rangelist_includes ( nodelist_rangelist_t a1,
nodelist_rangelist_t a2 
)

Definition at line 544 of file nodelist_range.c.

int nodelist_rangelist_intersects ( nodelist_rangelist_t a1,
nodelist_rangelist_t a2 
)

Definition at line 526 of file nodelist_range.c.

int nodelist_rangelist_remove_rangelist ( nodelist_rangelist_t array,
nodelist_rangelist_t rlin 
)

Definition at line 382 of file nodelist_range.c.