Home
last modified time | relevance | path

Searched refs:num_pkey (Results 1 – 2 of 2) sorted by relevance

/linux-6.15/arch/powerpc/mm/book3s64/
H A Dpkeys.c19 int num_pkey; /* Max number of pkeys supported */ variable
160 num_pkey = min(8, pkeys_total); in pkey_early_init_devtree()
162 num_pkey = pkeys_total; in pkey_early_init_devtree()
165 if (unlikely(num_pkey <= execute_only_key) || !pkey_execute_disable_supported) { in pkey_early_init_devtree()
191 if (unlikely(num_pkey <= 3)) { in pkey_early_init_devtree()
198 WARN(1, "Disabling kernel user protection due to low (%d) max supported keys\n", num_pkey); in pkey_early_init_devtree()
237 for (i = num_pkey; i < 32 ; i++) { in pkey_early_init_devtree()
246 pr_info("Enabling pkeys with max key count %d\n", num_pkey); in pkey_early_init_devtree()
/linux-6.15/arch/powerpc/include/asm/
H A Dpkeys.h14 extern int num_pkey;
47 return num_pkey; in arch_max_pkey()