From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 6 Jan 2017 01:34:14 -0800 From: Anthony Martin To: 9fans@9fans.net Message-ID: <20170106093414.GA26942@alice> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [9fans] A heartfelt thanks... :-) Topicbox-Message-UUID: b14f1ac6-ead9-11e9-9d60-3106f5b1d025 Ciao Giacomo, Why did you choose to create devself? Everything it does seems better suited to devproc. If I was going that route, I'd instead create a QTDIR file in devproc called #p/self that is just another view into #p/$pid. Then brk and chdir would be control messages written to #p/self/ctl. Same with seg^(attach detach free). You could also make those be control messages written to #p/self/segment instead. Also, I think it's a mistake to overload the return value of the remove system call for passing arbitrary integers out of the kernel. I understand why you want something like that, however. Moving system calls into reads and writes of various files increases the number of context switches since you have to open and close the files. Why not do exactly what you want and make a new system called readint or something? Oh, and where are the man pages? /doc/hacking is missing. I'm interested in reading about your awake system call and the changes you've made to rendezvous and the variuos locks in libc. Cheers, Anthony