regmap_field...te_bits_base(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… regmap_field...te_bits_base(9)

okay so bestie, you've landed on a page from the Kernel API Manual and it's giving "tiny function, huge friend group" energy 😭✨ The title up top is the truncated version (regmap_field...te_bits_base(9) β€” yes the man page really does just cut it off like that, no notes πŸ’€) but the actual star of the show is regmap_fields_update_bits_base. Let's get into it πŸŽ€


✨ NAME ✨

regmap_fields_update_bits_base β€” perform a read/modify/write cycle on a register field, with a port ID 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

int regmap_fields_update_bits_base (struct regmap_field *field ,
   unsigned int id , unsigned int mask , unsigned int val , bool *change ,
   bool async , bool force );

Like, look at all those parameters. She's got range πŸ‘‘ Seven whole arguments, and every one of them matters, so please don't skip any πŸ™ˆ


πŸ’– ARGUMENTS πŸ’–

  • field β€” the register field you're writing to, your main character 🫢
  • id β€” the port ID
  • mask β€” the bitmask that says which bits are getting changed
  • val β€” the value you're actually writing in
  • change β€” a boolean that tells you whether a write actually happened
  • async β€” a boolean, and it means asynchronously ⚑
  • force β€” a boolean, and it means use force update πŸ’ͺ

⭐ DESCRIPTION ⭐

So here's the whole vibe: a value of zero gets returned on success πŸ’š and a negative errno comes back in the error cases 😭 that's it, that's the description, she's mysterious like that.

ngl bestie, this one is short and sweet β€” the function does a read/modify/write cycle on a register field with a port ID, and the return value is your vibe check: 0 = slay, negative errno = it did not slay πŸ’€

🌈 SEE ALSO 🌈

Kernel file ./drivers/base/regmap/regmap.c β€” the whole friend group lives here 🏠

forty-one entries, bestie, I counted them so you don't have to πŸ’… iykyk


✨ that's the whole page, mwah ✨

this masterpiece lives in ./drivers/base/regmap and the version/date on the tin is October 2026 πŸŽ€ go forth and read/modify/write responsibly, bestie πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from