Welcome to NYCU CSIT Mirror site
Search and iterate: libblkid Reference Manual
Search and iterate
Search and iterate — search devices and iterate over devices in the cache.
Description
Note that high-level probing API provides information about superblocks
(filesystems/raids) only. For partitions and topology is necessary to use
the low-level API.
Functions
blkid_dev_devname ()
const char *
blkid_dev_devname (blkid_dev dev
);
blkid_dev_has_tag ()
int
blkid_dev_has_tag (blkid_dev dev
,
const char *type
,
const char *value
);
blkid_dev_set_search ()
int
blkid_dev_set_search (blkid_dev_iterate iter
,
const char *search_type
,
const char *search_value
);
blkid_find_dev_with_tag ()
blkid_dev
blkid_find_dev_with_tag (blkid_cache cache
,
const char *type
,
const char *value
);
blkid_get_devname ()
char *
blkid_get_devname (blkid_cache cache
,
const char *token
,
const char *value
);
blkid_get_tag_value ()
char *
blkid_get_tag_value (blkid_cache cache
,
const char *tagname
,
const char *devname
);
blkid_tag_next ()
int
blkid_tag_next (blkid_tag_iterate iterate
,
const char **type
,
const char **value
);
Types and Values
blkid_dev
typedef struct blkid_struct_dev *blkid_dev;
The device object keeps information about one device
blkid_dev_iterate
typedef struct blkid_struct_dev_iterate *blkid_dev_iterate;
devices iterator for high-level (blkid_cache) API
blkid_tag_iterate
typedef struct blkid_struct_tag_iterate *blkid_tag_iterate;
tags iterator for high-level (blkid_cache) API
If you have any questions or suggestions, please contact administrator via
mirror[at]linux.cs.nycu.edu.tw
, thank you very much :)