To further my fledgling knowledge of C, I am re-writing some of the Unix command set. My current command is an ls-style command.
All works well, except for device files. How do I get the major/minor numbers for the dev files?
I see from the stat struct there are st_rdev and st_dev members. Do... (1 Reply)
Hi
Can anyone tell me what is major number and minor number in the mknod command. Also what these numbers mean.
I have gone through the man pages but still I couldn't understand.
Regards (3 Replies)
would like to order this input based on major.minor.release AND build number
Label abc_def_0.0.3_build_999 2008/08/01 'Created by me.'
Label abc_def_0.0.9_build_1000 2008/08/01 'Created by me.'
Label abc_def_9.0.9_build_10001 2008/08/01 'Created by me.'
Label abc_def_10.9.100_build_2... (4 Replies)
Good evening ...
does anyone of you know how to change major/minor numbers of disk devices ?
I had to migrate from raid1 to raid5 and this messed up my ASM cluster - I know which devices should have which IDs to match the content - but I have no idea how to change it.
Any help would be... (2 Replies)
Hi,
I have line like this :
proj_name/module/trunk/module_1_0
where the first "1" refers to major version and second "0" refers to minor version.
any AWK or command like that so that I can filter out the major and minor ?
like major= command | input line
minor= command |... (4 Replies)
I want to remove all rows with a minor repeating count less than 30% compared to the major repeating count from my table. The values of a col(starting col 2) can assume is A,T,G,C and N. Each row has at least 2 values and at most 4 repeating values(out of ATGC).
N is considered a missing value... (12 Replies)
Discussion started by: newbie83
12 Replies
LEARN ABOUT MOJAVE
makedevice
makedevice(9F) Kernel Functions for Drivers makedevice(9F)NAME
makedevice - make device number from major and minor numbers
SYNOPSIS
#include <sys/types.h>
#include <sys/mkdev.h>
#include <sys/ddi.h>
dev_t makedevice(major_t majnum, minor_t minnum);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
majnum Major device number.
minnum Minor device number.
DESCRIPTION
makedevice() creates a device number from a major and minor device number. makedevice() should be used to create device numbers so the
driver will port easily to releases that treat device numbers differently.
RETURN VALUES
The device number, containing both the major number and the minor number, is returned. No validation of the major or minor numbers is per-
formed.
CONTEXT
makedevice() can be called from user or interrupt context.
SEE ALSO getmajor(9F), getminor(9F)SunOS 5.10 11 Apr 1991 makedevice(9F)