summaryrefslogtreecommitdiff
path: root/lib/device/dev-type.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/device/dev-type.h')
-rw-r--r--lib/device/dev-type.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/device/dev-type.h b/lib/device/dev-type.h
index fdf7791cf..e11b4e70d 100644
--- a/lib/device/dev-type.h
+++ b/lib/device/dev-type.h
@@ -83,6 +83,7 @@ int dev_is_md_with_end_superblock(struct dev_types *dt, struct device *dev);
int major_max_partitions(struct dev_types *dt, int major);
int dev_is_partitioned(struct dev_types *dt, struct device *dev);
int dev_get_primary_dev(struct dev_types *dt, struct device *dev, dev_t *result);
+int dev_get_partition_number(struct device *dev, int *num);
/* Various device properties */
unsigned long dev_alignment_offset(struct dev_types *dt, struct device *dev);