pt_load_entry_raw(9)
π pt_load_entry_raw
okay so bestie, welcome to the Kernel API Manual β¨ β this is the page for pt_load_entry_raw, and honestly? it's giving "tiny function, big main character energy". no cap. π«Ά
πΈ NAME
pt_load_entry_raw β read from the location that pts points at, right into the pts π
literally what it says on the tin, bestie. it goes and grabs the thing and drops it in place. iconic.
β¨ SYNOPSIS
enum pt_entry_type pt_load_entry_raw (struct pt_state *pts );
π ARGUMENTS
ptsβ the table index to load. that's the vibe check target, that's the whole assignment. π¦
π DESCRIPTION
so what happens is: it returns the type of entry that got loaded β¨ β like, the actual enum pt_entry_type, the whole point of the function, the moment.
and then pts->entry gets filled in with that entry's content π so you don't just learn what it is, you also get the goods. best of both worlds, fr fr.
also: see pt_load_entry π β that's your other reference, iykyk.
no guessing, babe β the description says exactly this and nothing more. pts->entry gets the content, the return value gets the type. periodt. π
π SEE ALSO
- kernel file
./drivers/iommu/generic_pt/pt_common.hπ β the source of truth, the mothership, the origin story pt_attr_from_entry(9)pt_can_have_leaf(9)pt_can_have_table(9)pt_clear_entries(9)pt_entry_make_write_dirty(9)pt_entry_make_write_clean(9)pt_entry_is_write_dirty(9)pt_dirty_supported(9)pt_entry_num_contig_lg2(9)pt_entry_oa(9)pt_entry_oa_lg2sz(9)pt_entry_oa_exact(9)pt_full_va_prefix(9)pt_has_system_page_size(9)pt_install_leaf_entry(9)pt_install_table(9)pt_item_oa(9)pt_max_oa_lg2(9)pt_num_items_lg2(9)pt_pgsz_lg2_to_level(9)pt_possible_sizes(9)pt_table_item_lg2sz(9)pt_table_oa_lg2sz(9)pt_table_pa(9)pt_table_ptr(9)pt_max_sw_bit(9)pt_test_sw_bit_acquire(9)pt_set_sw_bit_release(9)pt_load_entry(9)
that's the whole squad π not me listing every single one though β but yes, all of them, every last one, no skips. slay. π₯
and that's the page, bestie π this little gem lives in ./drivers/iommu/generic_pt and the manual itself is dated October 2026 β so yes, future-flavored documentation, and we're obsessed. go read some page tables, you've got this π π¦ πΈ
π¦ 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