man.bsd.lv manual page server

Manual Page Search Parameters

DISKLABEL_SCAN(3) Library Functions Manual DISKLABEL_SCAN(3)

disklabel_scanscan a buffer for a valid disklabel

library “libutil”

#include <util.h>

int
disklabel_scan(struct disklabel *lp, char *buf, size_t buflen);

() scans the memory region specified by buf and buflen for a valid disklabel. If such a label is found, it is copied into lp.

The disklabel_scan() function returns 0 if a valid disklabel was found and 1 if not.

The disklabel_scan() function call appeared in NetBSD 2.0.

May 4, 2010 NetBSD-9.2