*BSD News Article 81846


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsrelay.netins.net!newsfeed.dacom.co.kr!arclight.uoregon.edu!super.zippo.com!zdc!www.nntp.primenet.com!nntp.primenet.com!news1.best.com!nntp1.best.com!usenet
From: Marco S Hyman <marc@dumbcat.codewright.com>
Newsgroups: comp.unix.bsd.386bsd.misc,comp.unix.bsd.freebsd.misc,comp.unix.bsd.misc,comp.unix.bsd.netbsd.misc
Subject: Re: caddr_t definition???
Followup-To: comp.unix.bsd.misc
Date: 29 Oct 1996 22:34:15 -0800
Organization: codewright
Lines: 36
Message-ID: <x77mo99d08.fsf@dumbcat.codewright.com>
References: <5564mi$ktn@netnews.upenn.edu>
NNTP-Posting-Host: dumbcat.codewright.com
X-Newsreader: Gnus v5.3/Emacs 19.34
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.386bsd.misc:1152 comp.unix.bsd.freebsd.misc:30188 comp.unix.bsd.misc:1416 comp.unix.bsd.netbsd.misc:4798

danielbr@stipple.seas.upenn.edu (Daniel Brushteyn) writes:

> 
> Could anyone, please, help me to find definitions (in bsd tree) of the
> following things:

May I suggest that you get and install the gnu ID utils.  You could then
do things like:

> types/structs:
> caddr_t, kmembuckets,  int16_t, int32_t

	gid caddr_t | grep typedef
	gnu/usr.bin/gcc/sys-types.h:103:typedef int caddr_t;
	...

	gid kmembuckets | grep typedef
	sys/sys/malloc.h:237:struct kmembuckets {
	...

	gid int16_t | grep typedef
	include/db.h:54:typedef short                     int16_t;
	sys/arch/alpha/include/types.h:64:typedef       short                     int16_t;
	sys/arch/arc/include/types.h:67:typedef short                     int16_t;
	sys/arch/arm32/include/types.h:61:typedef       short                     int16_t;
	...

> functions:
> btokup, kmem_malloc

	gid btokup
	sys/sys/malloc.h:288:#define    btokup(addr)    (&kmemusage[((caddr_t)(addr) - kmembase) >> CLSHIFT])

etc.

// marc