Date: Wed, 29 Oct 2014 18:28:47 +0530 From: Sibananda Sahu <sibananda.sahu@avagotech.com> To: freebsd-questions@freebsd.org Subject: Open file descriptor reference count implementation in driver Message-ID: <6291be3b7bdd20e530f8cd104d225916@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, Can anybody suggest how can I implement the Open file descriptor reference count in a freebsd driver??? I have looked up at certain places in the cdev structure(sys/conf.h) and found two integer values: Int si_refcount; Int si_usecount; I think these are the stuffs useful for me. Can somebody explain what are the significance of the above mentioned integer values inside the cdev structure? Any help would be greatly appreciated. Thanks, Sibananda Sahu
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6291be3b7bdd20e530f8cd104d225916>