hp_update_a..._permissions(9)
π hp_update_a..._permissions(9) β Kernel API Manual β¨
Okay so bestie, quick vibe check: this is a page from the Kernel API Manual, and the star of the show is hp_update_attribute_permissions. Yes, the page header is literally hp_update_a..._permissions(9) because someone let the truncation gremlin cook π β but we move.
π NAME π
hp_update_attribute_permissions β the little function that updates attribute permissions whenever the isReadOnly value is 1. That's it, that's the whole job. She's a one-task queen and honestly? Respect. π
πΈ SYNOPSIS πΈ
void hp_update_attribute_permissions (bool is_readonly , struct kobj_attribute *current_val );
Look at that signature. void, two params, no notes. Main character energy fr. π
π¦ ARGUMENTS π¦
So there's exactly two things you gotta hand her, and here's the tea:
is_readonlyβ aboolvalue that tells you whether this is a readonly attribute or not.1? Readonly, babe. That's the whole cue. πcurrent_valβ thestruct kobj_attributethat corresponds to the attribute in question. Basically "which attribute are we talking about" β she needs the receipt, not just the vibe. π§Ύ
β SEE ALSO β
Not me dropping the whole friend group π β go check these out too:
- Kernel file
./drivers/platform/x86/hp/hp-bioscfg/bioscfg.cβ the source file, the mothership, the origin story π«Ά hp_calculate_string_buffer(9)hp_get_wmiobj_pointer(9)hp_get_instance_count(9)hp_alloc_attributes_data(9)destroy_attribute_objs(9)release_attributes_data(9)hp_add_other_attributes(9)hp_init_bios_attributes(9)
All of them, no skips, no cuts, periodt. π
Lowkey a reminder: this page is from the Kernel API Manual, dated October 2026, and yes, the footer still insists on calling her ./drivers/platform/x86/hp/hp-b.... Truncated name stays truncated, we don't gatekeep. π
Anyways bestie, that's the page β iconique, brief, and fully documented. Go be great with your attribute permissions. πππ
π¦ 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