euspectre/kedr

Use .owner field for module, which own functions registered by structure

Opened this issue · 0 comments

Original issue 21 created by euspectre on 2015-01-22T13:33:46.000Z:

Kernel's structures file_system_type and file_operations use 'struct module *owner' field for module, which owns functions set as callback in these structures.
KEDR structures 'kedr_payload' and 'kedr_functions_support' use 'mod' field for the same purpose.

I suggest to rename 'mod' to 'owner' in KEDR structures, as it reflects field purpose clearly and follows kernel conventions.

This renaming would require corresponded changes in KEDR-dependent projects, but it shouldn't be a big problem.