I have a device that comes up as
ttyACM0, however every time it is reset it iterates, so next time it will come up as
ttyACM1 etc. Where might this
lock be located so that I can remove it?
I'd like the device to come up as
ttyACM0 repeatedly and only a second device show as
You cannot do exactly what you want -- force the device to register as
ttyACM0 -- however, you can set up a udev rule to create a symlink, associated with a specific device, so that regardless of whether it registers as
ttyACM1, the specified symlink (e.g.,
/dev/my_ttyACM) will be available to access it.
The reason you can't force
ttyACM0 instead of
ttyACM1 is that this is selected by the kernel and cannot/should not be renamed.