1clrbuf(9F)               Kernel Functions for Drivers               clrbuf(9F)
2
3
4

NAME

6       clrbuf - erase the contents of a buffer
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/buf.h>
11
12
13
14       void clrbuf(struct buf *bp);
15
16

INTERFACE LEVEL

18       Architecture independent level 1 (DDI/DKI).
19

PARAMETERS

21       bp    Pointer to the buf(9S) structure.
22
23

DESCRIPTION

25       The clrbuf() function zeros a buffer and sets the b_resid member of the
26       buf(9S) structure to 0. Zeros are placed  in  the  buffer  starting  at
27       bp→b_un.b_addr  for  a  length  of  bp→b_bcount  bytes. b_un.b_addr and
28       b_bcount are members of the buf(9S) data structure.
29

CONTEXT

31       The clrbuf() function can be called from  user,  interrupt,  or  kernel
32       context.
33

SEE ALSO

35       getrbuf(9F), buf(9S)
36
37
38       Writing Device Drivers
39
40
41
42SunOS 5.11                        16 Jan 2006                       clrbuf(9F)
Impressum