pt_attr_from_entry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, this is pt_attr_from_entry(9) from the Kernel API Manual, and it is literally the β€œconvert the permission bits back to attrs” girlie. πŸ’… No cap: pt_attr_from_entry converts the permission bits back to attrs. The way that's such a useful little glow-up. πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

       void pt_attr_from_entry (const struct pt_state *pts , struct
       pt_write_attrs *attrs );

πŸ’– ARGUMENTS πŸ’–

  • pts β€” entry to convert from. That's the thing you're reading, bestie. ✨
  • attrs β€” resulting attrs. This is where the resulting attrs land. 🫢

🌸 DESCRIPTION 🌸

Fill in the attrs with the permission bits encoded in the current leaf entry. πŸ’– The attrs should be usable with pt_install_leaf_entry to reconstruct the same entry. So yes: permission bits in, attrs out, and pt_install_leaf_entry can use them to rebuild the same entry. That's the whole arc, and it ate. ✨

πŸ”₯ SEE ALSO πŸ”₯

Kernel file: ./drivers/iommu/generic_pt/pt_common.h β€” the whole friend group:


xoxo, your kernel bestie πŸ’– β€” from ./drivers/iommu/generic_pt, dated October 2026, for pt_attr_from_entry(9). πŸŽ€

πŸ“¦ where this page comes from