Someone here can help me? ---------- Forwarded message ---------- From: Tiago Natel Date: 2016-02-01 19:17 GMT-02:00 Subject: lib9p: Add clunk callback to Srv struct To: 9front@9front.org Hello folks, Is there a reason why lib9p doesn't have a clunk function pointer in Srv struct? I have a file server project using Srv and I want to know when no one client have a specific file opened. One way that I was able to get this working was forking 9front and adding a clunk callback to Srv structure. See the commit below: https://bitbucket.org/tiago4orion/plan9front/commits/5e1141f0a4aa98310cb0e2382c5c78c60fe73b4f My project usage of the clunk routine is here: https://bitbucket.org/tiago4orion/dchan/src/60dc3e45eb28c8a8289c177680120ef7f44e0925/fs.c?fileviewer=file-view-default#fs.c-680 This makes sense? Or is there better ways to achieve this? And if that makes sense, it can go upstream? Thanks.