Source code

Revision control

Copy as Markdown

Other Tools

use crate::backend;
use crate::fs::Dev;
/// `makedev(maj, min)`
///
/// # References
/// - [Linux]
///
#[inline]
pub fn makedev(maj: u32, min: u32) -> Dev {
backend::fs::makedev::makedev(maj, min)
}
/// `minor(dev)`
///
/// # References
/// - [Linux]
///
#[inline]
pub fn minor(dev: Dev) -> u32 {
backend::fs::makedev::minor(dev)
}
/// `major(dev)`
///
/// # References
/// - [Linux]
///
#[inline]
pub fn major(dev: Dev) -> u32 {
backend::fs::makedev::major(dev)
}