Sean Boudreau(deleted)
|
Re: open a device from the same process?
|
Sean Boudreau(deleted)
10/30/2008 1:34 PM
post15741
|
Re: open a device from the same process?
On Thu, Oct 30, 2008 at 01:31:37PM -0400, Michael Cranston wrote:
> Hello,
>
> I am trying to unit test a simple resource manager. The unit test process creates the resource manager just fine and
I can see it registered in /dev/mydevice.
>
> However, when I try to use open to access the device "/dev/mydevice" after creation, I get an error saying no such
file or directory.
>
> Is it not possible to open a device from the same process that created it?
>
> If I move the resource manager code and start it as a separate process in the system, everything works fine.
>
> Thoughts,
Look at the _RESMGR_FLAG_SELF flag in resmgr_attach().
-seanb
|
|
|