libblkid Reference Manual | ||||
---|---|---|---|---|
Top | Description |
typedef blkid_dev; const char * blkid_dev_devname (blkid_dev dev
); int blkid_dev_has_tag (blkid_dev dev
,const char *type
,const char *value
); typedef blkid_dev_iterate; blkid_dev_iterate blkid_dev_iterate_begin (blkid_cache cache
); void blkid_dev_iterate_end (blkid_dev_iterate iterate
); int blkid_dev_next (blkid_dev_iterate iterate
,blkid_dev *dev
); int blkid_dev_set_search (blkid_dev_iterate iter
,char *search_type
,char *search_value
); blkid_dev blkid_find_dev_with_tag (blkid_cache cache
,const char *type
,const char *value
); blkid_dev blkid_get_dev (blkid_cache cache
,const char *devname
,int flags
); char * blkid_get_devname (blkid_cache cache
,const char *token
,const char *value
); char * blkid_get_tag_value (blkid_cache cache
,const char *tagname
,const char *devname
); typedef blkid_tag_iterate; blkid_tag_iterate blkid_tag_iterate_begin (blkid_dev dev
); void blkid_tag_iterate_end (blkid_tag_iterate iterate
); int blkid_tag_next (blkid_tag_iterate iterate
,const char **type
,const char **value
);
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.
typedef struct blkid_struct_dev *blkid_dev;
The device object keeps information about one device
typedef struct blkid_struct_dev_iterate *blkid_dev_iterate;
devices iterator for high-level (blkid_cache) API
int blkid_dev_set_search (blkid_dev_iterate iter
,char *search_type
,char *search_value
);
blkid_dev blkid_find_dev_with_tag (blkid_cache cache
,const char *type
,const char *value
);
char * blkid_get_devname (blkid_cache cache
,const char *token
,const char *value
);
char * blkid_get_tag_value (blkid_cache cache
,const char *tagname
,const char *devname
);
typedef struct blkid_struct_tag_iterate *blkid_tag_iterate;
tags iterator for high-level (blkid_cache) API
int blkid_tag_next (blkid_tag_iterate iterate
,const char **type
,const char **value
);