Iterator
Iterator — unified iterator
|
|
Description
The iterator keeps the direction and the last position
for access to the internal library tables/lists.
Functions
mnt_free_iter ()
void
mnt_free_iter (struct libmnt_iter *itr
);
Deallocates the iterator.
mnt_iter_get_direction ()
int
mnt_iter_get_direction (struct libmnt_iter *itr
);
Returns
MNT_INTER_{FOR,BACK}WARD
mnt_new_iter ()
struct libmnt_iter *
mnt_new_iter (int direction
);
Returns
newly allocated generic libmount iterator.
mnt_reset_iter ()
void
mnt_reset_iter (struct libmnt_iter *itr
,
int direction
);
Resets the iterator.
Types and Values
struct libmnt_iter
struct libmnt_iter;
Generic iterator (stores state about lists)