In article <firstname.lastname@example.org>,
Vincent <vincent.catros_NO_SPAM_@bigfoot.com> wrote:
Writing a resource manager, I need to allocate my own OCB.
For that purpose I wrote my own iofunc_ocb_calloc & iofunc_ocb_free.
What must I do for that functions to be called?
Should I write my own iofunc_open instead of iofunc_open_default, or is
there another way?
You should set the mount field in the attribute structure for the device to
point to your own mount structure. The funcs field in the mount
structure has ocb_calloc and ocb_free function pointers that
need to be set to the addresses of your allocate and free functions
See the section on mount structures in the “Writing a Resource
Manager” chapter of the programmer’s guide.
Steve Furr email: email@example.com
QNX Software Systems, Ltd.