Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ size(D2DK) — Motorola System V 88k Release 4 Version 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

size(D2DK)  —  

NAME

size − return size of logical block device

SYNOPSIS

#include <sys/types.h>
#include <sys/param.h>
int prefixsize(dev_t dev);

ARGUMENTS

devThe logical device number. 

DESCRIPTION

The size entry point returns the number of NBPSCTR-byte units on a logical block device (slice).  NBPSCTR, defined in param.h, is the number of bytes per logical disk sector.  This routine is required for block drivers. 

NOTES

The size routine has user context and can sleep. 

RETURN VALUE

On success, the size routine should return the number of NBPSCTR-byte units on the logical block device specified by dev; on failure, size should return −1. 

DDI/DKI

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026