Initialize the resource manager attributes

QNX SDP8.0Writing a Resource ManagerDeveloper
When you call resmgr_attach(), you pass a resmgr_attr_t control structure to it. Our sample code initializes this structure like this:
/* initialize resource manager attributes */
memset(&resmgr_attr, 0, sizeof resmgr_attr);
resmgr_attr.nparts_max = 1;
resmgr_attr.msg_max_size = 2048;

In this case, we're configuring:

  • how many IOV structures are available for server replies (nparts_max)
  • the minimum receive buffer size (msg_max_size)

For more information, see resmgr_attach() in the QNX OS C Library Reference.

Page updated: