Date: Mon, 23 Jul 2001 20:45:12 -0700 From: Julian Elischer <julian@elischer.org> To: obrien@freebsd.org Cc: current@freebsd.org Subject: Re: Progress report: KSEs. Message-ID: <3B5CEF48.B09A700B@elischer.org> References: <3B5BD579.400FE65E@elischer.org> <20010723151258.A52202@dragon.nuxi.com>
next in thread | previous in thread | raw e-mail | index | archive | help
David O'Brien wrote: > > On Mon, Jul 23, 2001 at 12:42:49AM -0700, Julian Elischer wrote: > > step 1: get proc structure broken up, with system still running: done (twice) > > Can you post your diff to the proc structure? > > ... > > > -random_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) > > +random_ioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct thread *td) > > This implies `struct thread' has replaced `struct proc'. (I could be > wrong, but cannot be sure until you post the `struct proc' and related > structure changes/additions) A thread is blockable and anything that might block (e.g. a syscall,( e.g. ioctl)) needs to talk in terms of the thread rather than the process. so, yes, maybe > 50% of uses of "struct proc *p" get changed to "struct thread *td". The proc structure however still exists. > There is no `struct thread' in Jason's KSE paper. > Why aren't you > following the paper > http://people.freebsd.org/~jasone/refs/freebsd_kse/freebsd_kse.html? Well since I made up the terminology in the paper,... because I changed my mind about it? My original posts said.. "lets call these KSEs etc. tillwe are completely sure what they do and can give them better names. The basic unit turns out to be the thread which can be blocked so calling it a KSEC is plain confusing. As you requested, I include my current version of proc.h at http://www.freebsd.org/~julian this is NOT the version that ran under step #1 but rather as it looks now, half way through step #2. > > -- > -- David (obrien@FreeBSD.org) -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B5CEF48.B09A700B>