build_changeset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

Okay bestie, this is build_changeset(9) from the Kernel API Manual, and yes, we're doing kernel overlay changesets today. πŸ’…βœ¨


🌸 NAME 🌸

build_changeset is here to populate the overlay changeset in @ovcs from @ovcs->fragments. That's the assignment, no cap. 🫢

✨ SYNOPSIS ✨

int build_changeset (struct overlay_changeset *ovcs );

πŸŽ€ ARGUMENTS πŸŽ€

  • ovcs β€” Overlay changeset. It's the struct we're passing in, bestie; that's the whole argument. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

Create changeset ovcs->cset so it contains the nodes and properties of the overlay device tree fragments in ovcs->fragments[]. Like, that's literally the mission. πŸ“

If an error occurs, any portions of the changeset that were successfully created will remain in ovcs->cset β€” no magical cleanup, they stay. 😭

πŸ”₯ RETURN πŸ”₯

  • 0 β€” success, slay. πŸ‘‘
  • -ENOMEM β€” memory allocation failure. 😭
  • -EINVAL β€” invalid overlay in ovcs->fragments[]. 🚩

🌈 SEE ALSO 🌈

Go peek at these, iykyk:


Final vibe check: this iconic page is from ./drivers/of, dated October 2026, and it's literally build_changeset(9). Periodt. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from