cc_platform_has(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– cc_platform_has(9) β€” a Kernel API Manual moment, from your fav kernel bestie πŸŽ€

okay so bestie, we're in the Kernel API Manual (yes, that Kernel API Manual) and today's main character is cc_platform_has(9). she's short, she's sweet, and she's literally just here to tell you the tea about Confidential Computing attributes. no cap. ✨


🌸 NAME 🌸

cc_platform_has β€” checks if the specified cc_attr attribute is active πŸ¦‹

✨ SYNOPSIS ✨

bool cc_platform_has (enum cc_attr attr );

like… that's it. that's the whole vibe check. one argument, one boolean. iconic. πŸ’…

πŸŽ€ ARGUMENTS πŸŽ€

  • attr β€” the Confidential Computing attribute to check. yes queen, you gotta tell her which one you're asking about πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

so here's the thing: cc_platform_has will return an indicator as to whether the specified Confidential Computing attribute is currently active. that's literally the whole plot. she looks, she checks, she tells you what's up. main character energy fr fr πŸ”₯

🌈 CONTEXT 🌈

Any context. any. literally any. she doesn't gatekeep where you call her from, and honestly? we stan an accessible function 🫢

⭐ RETURN ⭐

  • TRUE β€” the specified Confidential Computing attribute is active βœ… slay
  • FALSE β€” the specified Confidential Computing attribute is not active ❌ better luck next time bestie 😭

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./include/linux/cc_platform.h
  • enum cc_attr(9)

lowkey reminder: the file lives at ./include/linux/cc_platform.h β€” go peek at enum cc_attr(9) if you wanna see all the attribute options, iykyk πŸ’–

and that's the page, bestie! sourced from ./include/linux, dated October 2026, and yes β€” she's still cc_platform_has(9) in the footer. periodt. πŸ‘‘πŸŒΈπŸ’…

πŸ“¦ where this page comes from