Udev::FFI::Devnum.
use Udev::FFI::Devnum qw(:all); #or use Udev::FFI::Devnum qw(major minor makedev) my $devnum = makedev(8, 1); my $major = major($devnum); my $minor = minor($devnum);
This module provides major, minor and makedev functions.
Return major ID.
Return minor ID.
Return device number.
Udev::FFI main Udev::FFI documentation
To install Udev::FFI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Udev::FFI
CPAN shell
perl -MCPAN -e shell install Udev::FFI
For more information on module installation, please visit the detailed CPAN module installation guide.