path -> dev_t - Minix

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 ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: path -> dev_t

  1. path -> dev_t

    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.

  2. Re: path -> dev_t

    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.

+ Reply to Thread