The new API for libgpiod is a lot more limited than the old one. It used to be possible to find a GPIO line by name, and it also used to be possible to iterate through gpiochips by number.
Now the only way seems to be to iterate through the chips then iterate through the lines for each chip, comparing to the name list in the module parameter. This is a one-time chore, so is do-able except that the _only_ way to pen a gpio chip now is by path, eg /dev/gpiochip0 So how to get a list of all /dev/gpiochip* entries, in C, and (preferably) in a kernel-mode compatible code. (to potentially hang on to RTAI a little longer) I suppose I could just _try_ accessing all gpiochip0, gpiochip1....gpiochip99 ignoring those that return an error. I am very not impressed by this complete restructuring of the gpiod API and I also have some concerns that the bulk transfers are no-longer supported, so it might not be usable for stepping any more even if I do get it working. -- atp "A motorcycle is a bicycle with a pandemonium attachment and is designed for the especial use of mechanical geniuses, daredevils and lunatics." — George Fitch, Atlanta Constitution Newspaper, 1912 _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
