resmgr_detach () device with NULL path name;

I’m creating resource manager by attaching device
resmgr_attach (…) with arguments:
device_path_name = NULL (no name),
flag = _FTYPE_ANY;

…and there is sth wrong with detaching that kind of device :frowning:.

if I put there real name (device_path_name = “/dev/aqq”)
than detaching works properly;

how to properly detach device with no name ?
/maybe I should create it with flag = _FTYPE_MOUNT ?