BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kread_struct - read in a single structure

LIBRARY CALL

ssize_t kread_struct(
   int    id,
   kaddr *data,
   int    type)

INPUT

OUTPUT

RETURN VALUE

the number of structs read

DESCRIPTION

This module is used to read in a single structure from a transport. Unlike kread_generic() this routine will malloc the returned memory for a single structure.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

$BOOTSTRAP/objects/library/kutils/src/kread.c

SEE ALSO

kutils(3)

COPYRIGHT

Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.