iio_backend...ampling_freq(9)
π NAME π
okay so bestie, welcome to the iio_backend...ampling_freq(9) page from the Kernel API Manual π this one is literally about iio_backend_set_sampling_freq β Set channel sampling rate β¨ that's the whole assignment, no cap.
β¨ SYNOPSIS β¨
the signature is giving βI set the sample rate for a channelβ and it's right here:
int iio_backend_set_sampling_freq (struct iio_backend *back , unsigned
int chan , u64 sample_rate_hz );
π ARGUMENTS π
backβ the backend device π«Ά your main character struct.chanβ the channel number, i.e. which channel we're talking to π«sample_rate_hzβ the sample rate πΈ yes, the rate of samples, as advertised.
π«Ά RETURN π«Ά
0 on success, and a negative error number on failure π so if it's not zero, something went sideways β periodt.
π₯ SEE ALSO π₯
Kernel file: ./drivers/iio/industrialio-backend.c π and the whole friend group is:
iio_backend_debugfs_add(9)iio_backend_debugfs_print_chan_status(9)iio_backend_chan_enable(9)iio_backend_chan_disable(9)iio_backend_disable(9)iio_backend_enable(9)devm_iio_backend_enable(9)iio_backend_data_format_set(9)iio_backend_data_source_set(9)iio_backend_data_source_get(9)iio_backend_test_pattern_set(9)iio_backend_chan_status(9)iio_backend_iodelay_set(9)iio_backend_data_sample_trigger(9)devm_iio_backend_request_buffer(9)iio_backend_read_raw(9)iio_backend_ext_info_get(9)iio_backend_ext_info_set(9)iio_backend_interface_type_get(9)iio_backend_data_size_set(9)iio_backend_oversampling_ratio_set(9)iio_backend_extend_chan_spec(9)iio_backend_has_caps(9)iio_backend_filter_type_set(9)iio_backend_interface_data_align(9)iio_backend_num_lanes_set(9)iio_backend_ddr_enable(9)iio_backend_ddr_disable(9)iio_backend_data_stream_enable(9)iio_backend_data_stream_disable(9)iio_backend_data_transfer_addr(9)devm_iio_backend_get(9)devm_iio_backend_get_by_index(9)devm_iio_backend_fwnode_get(9)__devm_iio_backend_get_from_fwnode_lookup(9)iio_backend_get_priv(9)devm_iio_backend_register(9)
mwah π this page is from the ./drivers/iio source, dated October 2026, and it's the iio_backend...ampling_freq(9) manual-page cutie. byeee π¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms