Download Writing Device Drivers

Transcript
dev_t makedevice(major_t majnum, minor_t minnum);
makedevice(9F) constructs and returns a device number of type dev_t from the
major device number majnum and the minor device number minnum.
int max(int int1, int int2);
max(9F) returns the larger of the integers int1 and int2.
int min(int int1, int int2);
min(9F) returns the lesser of the integers int1 and int2.
int nodev();
nodev(9F) returns an error. Use nodev(9F) as the entry in the cb_ops(9S)
structure for any entry point for which the driver must always fail.
int nulldev();
nulldev(9F) always returns zero, a return which for many entry points implies
success. See the manual pages in Section 9 of the Solaris 7 Reference Manual
Collection to learn about entry point return semantics.
Summary of Solaris 7 DDI/DKI Services
427