of_property_read_bool(9)
π NAME π
okay bestie, welcome to of_property_read_bool(9) β that's the title β and this whole page is from the Kernel API Manual. π The name is literally Find a property: of_property_read_bool goes looking for a property. slay.
β¨ SYNOPSIS β¨
this is the signature, no cap β copy it exactly:
bool of_property_read_bool (const struct device_node *np , const char
*propname );
π«Ά ARGUMENTS π«Ά
npβ the device node from which the property value is to be read. it's giving "where we're reading from" energy, fr fr.propnameβ the name of the property to be searched. yes, the string you're hunting for. π
π DESCRIPTION π
so what it does: search for a boolean property in a device node. simple, iconic, done. β¨
using it on non-boolean property types is deprecated β like, deprecated deprecated. so keep it boolean, bestie. π
π₯ RETURN π₯
true if the property exists, false otherwise. that's it. that's the whole return vibe. π
π SEE ALSO π
go read these next, bestie β same kernel-API universe:
- Kernel file:
./drivers/of/property.c of_graph_is_present(9)of_property_count_elems_of_size(9)of_find_property_value_of_size(9)of_property_read_u8_index(9)of_property_read_u16_index(9)of_property_read_u32_index(9)of_property_read_u64_index(9)of_property_read_variable_u8_array(9)of_property_read_variable_u16_array(9)of_property_read_variable_u32_array(9)of_property_read_u64(9)of_property_read_variable_u64_array(9)of_property_read_string(9)of_property_match_string(9)of_property_read_string_helper(9)of_graph_parse_endpoint(9)of_graph_get_port_by_id(9)of_graph_get_next_port(9)of_graph_get_next_port_endpoint(9)of_graph_get_next_endpoint(9)of_graph_get_endpoint_by_regs(9)of_graph_get_remote_endpoint(9)of_graph_get_port_parent(9)of_graph_get_remote_port_parent(9)of_graph_get_remote_port(9)of_graph_get_endpoint_count(9)of_graph_get_port_count(9)of_graph_get_remote_node(9)parse_prop_cells(9)parse_suffix_prop_cells(9)struct supplier_bindings(9)of_link_property(9)
xoxo, source: ./drivers/of; date: October 2026 β bye bestie! π«Ά
π¦ 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