Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - Want to connect with my resource manager: Page 1 of 3 (3 Items)
   
Want to connect with my resource manager  
I wrote a resource manager for I2C.  The documents say a resource manager must run as 'root'. How do I assign it to root
?

In a thread I want to open my I2C resource manager and send writes and reads to it.  The document says to open with an 
'open' function.

fd = open("/dev/ser1/",O_RDWR);

How do I address my I2C resource manager?
fd = open("/dev/I2C/",O_RDWR);  ??  How do I give my resource manager a name the 'open' function can find?

I used the same code for all resource manager function opens in QNX.

int i2c_open(resmgr_context_t *ctp, io_open_t *msg, RESMGR_HANDLE_T *handle, void *extra)
{
	return(iofunc_open_default(ctp, msg, handle, extra));
}

Makes no sense!  Can anyone advise?