*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->NetBSD man pages -> fuswintr (9)              
Title
Content
Arch
Section
 

FETCH(9)

Contents


NAME    [Toc]    [Back]

     fetch, fubyte, fuibyte, fusword, fuswintr, fuword, fuiword - fetch data
     from user-space

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <sys/systm.h>

     int
     fubyte(const void *base);

     int
     fusword(const void *base);

     int
     fuswintr(const void *base);

     long
     fuword(const void *base);

DESCRIPTION    [Toc]    [Back]

     The fetch functions are designed to copy small amounts of data from userspace.


     The fetch routines provide the following functionality:

     fubyte()    Fetches a byte of data from the user-space address base.

     fusword()   Fetches a short word of data from the user-space address
                 base.

     fuswintr()  Fetches a short word of data from the user-space address
                 base.  This function is safe to call during an interrupt context.


     fuword()    Fetches a word of data from the user-space address base.

RETURN VALUES    [Toc]    [Back]

     The fetch functions return the data fetched or -1 on failure.  Note that
     these functions all do "unsigned" access, and therefore will never sign
     extend byte or short values.  This prevents ambiguity with the error
     return value for all functions except fuword().

SEE ALSO    [Toc]    [Back]

      
      
     copy(9), store(9)

BUGS    [Toc]    [Back]

     The function fuword() has no way to unambiguously signal an error,
     because the data it reads might legitimately be the same as the -1 used
     to indicate an error.  The other functions do not have this problem
     because the unsigned values returned by those can never match the -1
     error return value.

BSD                             January 7, 1996                            BSD
[ Back ]
 Similar pages
Name OS Title
fuswintr FreeBSD fetch data from user-space
fubyte FreeBSD fetch data from user-space
fetch FreeBSD fetch data from user-space
fuword FreeBSD fetch data from user-space
fusword FreeBSD fetch data from user-space
AFgetframecnt IRIX get the total sample frame count / data bytes / data offset for a specified audio track from an AFfilehandle s
inet6_opt_get_val Tru64 Extract data items from the data portion of an IPv6 option
tcflush Tru64 Flush nontransmitted output data or nonread input data
inet6_opt_set_val Tru64 Insert data items into the data portion of the IPv6 option
t_snd Tru64 Send normal data or expedited data over a connection
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service