pub unsafe extern "C" fn iio_device_identify_filename(
    dev: *const iio_device,
    filename: *const c_char,
    chn: *mut *mut iio_channel,
    attr: *mut *const c_char
) -> c_int
Expand description

@brief Identify the channel or debug attribute corresponding to a filename @param dev A pointer to an iio_device structure @param filename A NULL-terminated string corresponding to the filename @param chn A pointer to a pointer of an iio_channel structure. The pointed pointer will be set to the address of the iio_channel structure if the filename correspond to the attribute of a channel, or NULL otherwise. @param attr A pointer to a NULL-terminated string. The pointer pointer will be set to point to the name of the attribute corresponding to the filename. @return On success, 0 is returned, and *chn and *attr are modified. @return On error, a negative errno code is returned. *chn and *attr are not modified.