Hey guys I'm documenting the behaviour and uses of pmap_active_cpu(9), this function was written by Konstantin Belousov in 2021 i guess for implementing membarrier() syscall in FreeBSD.
pmap_active_cpus(pmap_t pmap, cpuset_t *res)
I understand that this function stores the value of pm_active from pmap into *res
I kind of know that pm_active is a set of cpus which are using that pmap( please correct me if I'm wrong ).
If you could tell me how to safely use this function or just point me to a code that I should into, it would be really helpful.
And the term active means that CPU is active for a pmap if it is currently executing the code which uses that address space, right??
Thank you for you time
pmap_active_cpus(pmap_t pmap, cpuset_t *res)
I understand that this function stores the value of pm_active from pmap into *res
I kind of know that pm_active is a set of cpus which are using that pmap( please correct me if I'm wrong ).
If you could tell me how to safely use this function or just point me to a code that I should into, it would be really helpful.
And the term active means that CPU is active for a pmap if it is currently executing the code which uses that address space, right??
Thank you for you time