MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


Kernel Functions for Drivers                        bpcopyin(9F)



NAME
     bpcopyin - copy from a buf(9S) into a driver buffer

SYNOPSIS
     #include 
     #include 




     int bpcopyin(struct buf *bp, void *driverbuf, offsett offset,
          sizet size);


INTERFACE LEVEL
     Architecture independent level 1 (DI/DKI).

PARAMETERS
     bp           Pointer to the buffer header structure to  copy
                  from.


     driverbuf    Driver buffer to copy to.


     offset       Offset into bp where to start copying.


     size         Size of copy.


DESCRIPTION
     The bpcopyin() function copies size bytes into  the  memory
     associated  with bp to the destination driver buffer driver-
     buf. The offset only applies to bp.

RETURN VALUES
     Under normal conditions, 0 is returned to  indicate  a  suc-
     cessful  copy.  Otherwise,  -1  is returned if bp references
     invalid pages.

CONTEXT
     The bpcopyin() function can be called from user  or  kernel
     context only.

SEE ALSO
     bpcopyout(9F),         bpmapin(9F),         bpmapout(9F),
     ddicopyout(9F), buf(9S)







SunOS 5.11          Last change: 16 Oct 2007                    1



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™