Open file descriptor reference count implementation in driver

Sibananda Sahu sibananda.sahu at avagotech.com
Tue Nov 4 08:43:24 UTC 2014


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


More information about the freebsd-questions mailing list