just for the record: i circumvent this by providing the driver with a
major,minor pair as string instead of the dev-node path. now
translation is done by the user and userspace-programm respectively.
This is a discussion on path -> dev_t - Minix ; hi all! what's the easiest (most convenient) way to convert a path (char*, e.g. /dev/c0d0p0s0) to a device node (dev_t, eg. (3, 128)) from a driver-process? the problem: i'm in a "conversion" with FS (vfs) and not able to start ...
hi all!
what's the easiest (most convenient) way to convert a path (char*,
e.g. /dev/c0d0p0s0) to a device node (dev_t, eg. (3, 128)) from a
driver-process?
the problem: i'm in a "conversion" with FS (vfs) and not able to start
a second one from within it. so just calling "stat" is not the
solution.
maybe there's no clean solution without async file-access, but maybe
some work-around...
thx,
markus.
just for the record: i circumvent this by providing the driver with a
major,minor pair as string instead of the dev-node path. now
translation is done by the user and userspace-programm respectively.