Inode and Device Number in Resource-Manager

I have written a resource manager that creates a number
of different devices under a new directory (/dev/gpib/1 to /dev/GPIB/30).
But the problem is, that all the entries get the same inode number.
Any try to define the inode number before or after resmgr_attach
or within the io_stat function fails. Doing ls -la all the times
I get “0 0” for ino/devno. The API lib simply ignored my settings.
Is there anything special that must be done?

root <root@ldvlp.intern.akso.de> wrote:

I have written a resource manager that creates a number
of different devices under a new directory (/dev/gpib/1 to /dev/GPIB/30).
But the problem is, that all the entries get the same inode number.
Any try to define the inode number before or after resmgr_attach
or within the io_stat function fails. Doing ls -la all the times
I get “0 0” for ino/devno. The API lib simply ignored my settings.
Is there anything special that must be done?

Are these names attached separately or created under program control
in a RESMGR_FLAG_DIR namespace? In the former case you can use
resmgr_devino() to get an ino, in the latter you make up unique
numbers yourself (eg can use memory address of iofunc_attr_t); in
both cases you are responsible for filling the ‘inode’ field …