Home
Support

Knowledge Base

BSPs and drivers
Community resources
Product documentation
Questions?
Contact us

Resource manager can't open it's own device
 
________________________________________________________________________

Applicable Environment
________________________________________________________________________
  • Topic: Resource Manager
  • SDP: 6.5.0SP1
  • Target: Any supported target
________________________________________________________________________

Question
________________________________________________________________________

I create a resource manager and in another thread in the same process try to connect to my own device, but it always fails with NOTTY. I can open device from other processes.

________________________________________________________________________

Solution
________________________________________________________________________

In general, it"s not a good idea to create a design where one thread in a resmgr does an open on the resmgr device. It creates potential for deadlock. If you are absolutely sure that the thread doing the open is never involved in servicing device requests, it can be done by specifying the _RESMGR_FLAG_SELF flag to resgmr_attach. For more info. look up resmgr_attach in the library reference.


________________________________________________________________________
NOTE: This entry has been validated against the SDP version listed above. Use caution when considering this advice for any other SDP version. For supported releases, please reach out to QNX Technical Support if you have any questions/concerns.
________________________________________________________________________


Related Attachments
 None Found





Please contact us with your questions or concerns.