GETDISKRAWNAME(3)       NetBSD Library Functions Manual      GETDISKRAWNAME(3)


NAME
getdiskrawname, getdiskcookedname -- get the block/character device name for a disk
LIBRARY
System Utilities Library (libutil, -lutil)
SYNOPSIS
#include <util.h> const char * getdiskrawname(char *buf, size_t buflen, const char *name); const char * getdiskcookedname(char *buf, size_t buflen, const char *name);
DESCRIPTION
The getdiskrawname() function converts the name argument that contains a path to a disk block device node to the path that contains the corre- sponding character device node. The getdiskcookedname() function con- verts the name argument that contains a path to a disk character device node to the path that contains the corresponding block device node.
RETURN VALUES
On success the absolute pathname of the underlying device node is returned. On failure NULL is returned and errno contains the reason for the error.
HISTORY
The getdiskrawname() and getdiskcookedname() functions appeared in NetBSD 7.0. NetBSD 9.0 March 7, 2012 NetBSD 9.0

You can also request any man page by name and (optionally) by section:

Command: 
Section: 
Architecture: 
Collection: 
 

Use the DEFAULT collection to view manual pages for third-party software.


Powered by man-cgi 1.15, Panagiotis Christias
Modified for NetBSD by Kimmo Suominen