change smp_affinity from linux device driver
问题 If I examine the cat /proc/interrupts command, all the IRQs are listed under cpu0 in SMP system. I can change the smp_affinity mask to tag the IRQ to particular CPU using following command. echo "4" > /proc/irq/230/smp_affinity Above command sets the affinity mask of the interrupt 230 to CPU 2. I would like achieve same from linux kernel module. How can I do this? I see create_proc_entry method which allows to create new proc entry. Is there any method which we can use to write existing proc