data structure used in syscal and kernel thread

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have a data structure which is used in a kernel thread and in my
ioctl function. I know for interrupts I need to use spin_lock_irqsave
to disable interrupts but what about syscalls (ie. exceptions)?

When the kernel thread accesses the data structure, should it also
disable interrupts so that my user program doesnt send a syscall at
that particular point in time?

thanks

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux