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

NAME

6       bp_copyin - copy from a buf(9S) into a driver buffer
7

SYNOPSIS

9       #include <sys/types.h>
10       #include <sys/buf.h>
11
12
13
14
15       int bp_copyin(struct buf *bp, void *driverbuf, offset_t offset,
16            size_t size);
17
18

INTERFACE LEVEL

20       Architecture independent level 1 (DDI/DKI).
21

PARAMETERS

23       bp           Pointer to the buffer header structure to copy from.
24
25
26       driverbuf    Driver buffer to copy to.
27
28
29       offset       Offset into bp where to start copying.
30
31
32       size         Size of copy.
33
34

DESCRIPTION

36       The  bp_copyin()  function copies size bytes into the memory associated
37       with bp to the destination driver buffer  driverbuf.  The  offset  only
38       applies to bp.
39

RETURN VALUES

41       Under  normal  conditions, 0 is returned to indicate a successful copy.
42       Otherwise, -1 is returned if bp references invalid pages.
43

CONTEXT

45       The bp_copyin() function can be called  from  user  or  kernel  context
46       only.
47

SEE ALSO

49       bp_copyout(9F), bp_mapin(9F), bp_mapout(9F), ddi_copyout(9F), buf(9S)
50
51
52
53SunOS 5.11                        16 Oct 2007                    bp_copyin(9F)
Impressum