Where did the owner field of the proc_dir_entry structure go? [Linux kernel]

According to the list of API changes in the 2.6 kernel series, the LWN field .owner struct proc_dir_entrywas deleted at 2.6.30 The kernel.

So here are a couple of questions:

  • Was it really necessary or useful to set this field?
  • Has the field been moved elsewhere or permanently deleted?

I ask the first question, because while LKMPG sets this field in many examples , procfs_example.c from the kernel documentation never does.

+3
source share
2 answers

I'm not an expert on the Linux kernel, but maybe this entry has some meaning for you:

http://lkml.org/lkml/2009/1/26/342

.

+2

, , bugzilla.kernel.org. . Bugid 12454
, .

+1

Source: https://habr.com/ru/post/1722773/


All Articles