Annotation of 43BSDReno/sys/kdb/kdb_access.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Copyright (c) 1986 Regents of the University of California.
        !             3:  * All rights reserved.  The Berkeley software License Agreement
        !             4:  * specifies the terms and conditions for redistribution.
        !             5:  *
        !             6:  *     @(#)kdb_access.c        7.4 (Berkeley) 5/3/90
        !             7:  */
        !             8: 
        !             9: /*
        !            10:  * Access data in kernel address space.
        !            11:  */
        !            12: 
        !            13: #include "../kdb/defs.h"
        !            14: 
        !            15: /*
        !            16:  * Primitives: put a value in a space, get a value from a space
        !            17:  * and get a word or byte not returning if an error occurred.
        !            18:  */
        !            19: /*ARGSUSED*/
        !            20: kdbput(addr, space, value) 
        !            21:     off_t addr; long value; { (void) kdbpoke((caddr_t)addr, value); }
        !            22: 
        !            23: /*ARGSUSED*/
        !            24: u_int
        !            25: kdbget(addr, space)
        !            26:     off_t addr; { return (kdbpeek((caddr_t)addr)); };
        !            27: 
        !            28: u_int
        !            29: kdbchkget(addr, space)
        !            30:     off_t addr; { u_int w = kdbget(addr, space); kdbchkerr(); return (w); }
        !            31: 
        !            32: u_int
        !            33: kdbbchkget(addr, space) 
        !            34:     off_t addr; { return (byte(kdbchkget(addr, space))); }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.