export IO function symbol

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

 



Hi,

I am writing a kernel module, and there is an I/O function (which
might sleep in the queue to wait for IO event).

I want to export this function (EXPORT_SYMBOL), so other modules or
kernel code can use it. The problem is: I am afraid that if this
function is called at the same time (one is running in module, and at
the same time other module calls it), there can be conflict. Is that
really possible?

If the problem is possible, how can I solve it? Is mutex the answer to
this problem?

Many thanks.
Hieu

--
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