Hello
I'm trying to get the current CPU number that is executing the code (in driver kernel). In linux we have get_cpu(). What's the analogue in FreeBSD?
My goal is currently execute the same function c in all the CPUs with the "smp_rendezvous()", then print the number of each CPU.
In linux I can do it with smp_call_function() + get_cpu(). How i can do this in FreeBSD?
Thank you,
Best Regards.
I'm trying to get the current CPU number that is executing the code (in driver kernel). In linux we have get_cpu(). What's the analogue in FreeBSD?
My goal is currently execute the same function c in all the CPUs with the "smp_rendezvous()", then print the number of each CPU.
In linux I can do it with smp_call_function() + get_cpu(). How i can do this in FreeBSD?
Thank you,
Best Regards.