BOOTSTRAP (kutils) functions


LIBRARY ROUTINE

kstruct_define - define a structure entry

LIBRARY CALL

int kstruct_define(
   const char *name,
   size_t  size,
   int   (*read_struct) PROTO((
      int,
      kaddr,
      int)),
   int   (*write_struct) PROTO((
      int,
      kaddr,
      int)),
   int   (*compare_struct) PROTO((
      kaddr,
      kaddr,
      int)),
   void  (*free_struct) PROTO((
      kaddr,
      int,
      int)))

INPUT

OUTPUT

none

RETURN VALUE

returns the structure data type on success, KUNDEFINED otherwise

DESCRIPTION

This module is used to define a structure entry, which can then be used by the kread_generic()/kwrite_generic() routines to read and write arbitary structures.

ADDITIONAL INFORMATION

none

EXAMPLES

none

SIDE EFFECTS

none

RESTRICTIONS

none

MODIFICATION

none

FILES

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

SEE ALSO

kutils(3)

COPYRIGHT

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