@brief Determine the chip name and line offset of a line with given name. @param name The name of the GPIO line to lookup. @param chipname Buffer in which the name of the GPIO chip will be stored. @param chipname_size Size of the chip name buffer. @param offset Pointer to an integer in which the line offset will be stored. @return -1 on error, 0 if the line with given name doesn't exist and 1 if the line was found. In the first two cases the contents of chipname and offset remain unchanged. @note The chip name is truncated if the buffer can't hold its entire size.

extern (C)
const(char)* name
char* chipname
uint* offset