symbol_get() and try_module_get()

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

 



I have a two drivers, X and Y. X needs to access a structure in Y. Y uses EXPORT_SYMBOL on the structure, and X uses symbol_get() to obtain the address of that structure. Does X also need to call try_module_get()? I don't think so, because symbol_get() already calls try_module_get(), but in a google search, I came across several different web pages that says that I do need to call try_module_get().

--
Timur Tabi
Staff Software Engineer
timur.tabi@xxxxxxxxxxx

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