cc_platform_has(9)
π 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 β slayFALSEβ 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 atenum 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
- 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