From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3115414fc57b1a87c6ffe6744f4a65a0@felloff.net> Date: Thu, 5 May 2016 15:56:25 +0200 From: cinap_lenrek@felloff.net To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] A couple questions about /dev/draw and /dev/kbmap Topicbox-Message-UUID: 8e8a140a-ead9-11e9-9d60-3106f5b1d025 > In that case, is there any way to get the current max packet size that 9p > will allow for > a read or write, or to determine if you're drawing to a local machine or > not? I'm not seeing anything obvious under /dev or /env. the iounit is negotiated before you mount with the Tversion/Rversion message: size[4] Tversion tag[2] msize[4] version[s] size[4] Rversion tag[2] msize[4] version[s] plan9 has the iounit syscall for retriving the negotiated value for a particular file descriptor. (see iounit(2)) libdraw determines the iounit in initdraw() and sizes its write buffer accordingly. uploading pixels into a image will split the y/Y operation in multiple ones so they fit into the buffer. -- cinap