Re: file_operations owner field.

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

 



Hi,
Hi All,

I was reading a chapter from LDD3 and came know that

file_operations->owner field is a pointer to the module that owns the file_operations structure. This field is used to prevent the module from being unloaded while its operation is in use. Almost all the time, it is simply initialized to THIS_MODULE, a macro define in <linux/module.h>
owner is of type struct module and THIS_MODULE is macro
which is defined as &__this_module. Look at the declaration
of struct module in linux/module.h

-pgssgp

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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