[BL training-materials-updates] kernel-frameworks: add "owner" field in file_operations

Thomas Petazzoni thomas.petazzoni at bootlin.com
Thu Jul 19 14:05:43 CEST 2018


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=3a26209caca069c6be7da59b2ff68815e17ecf0a

>---------------------------------------------------------------

commit 3a26209caca069c6be7da59b2ff68815e17ecf0a
Author: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
Date:   Thu Jul 19 14:02:07 2018 +0200

    kernel-frameworks: add "owner" field in file_operations
    
    This field is important for module reference counting.
    
    Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>


>---------------------------------------------------------------

3a26209caca069c6be7da59b2ff68815e17ecf0a
 slides/kernel-frameworks2/kernel-frameworks2.tex | 1 +
 1 file changed, 1 insertion(+)

diff --git a/slides/kernel-frameworks2/kernel-frameworks2.tex b/slides/kernel-frameworks2/kernel-frameworks2.tex
index 7f9dbc0..8f84388 100644
--- a/slides/kernel-frameworks2/kernel-frameworks2.tex
+++ b/slides/kernel-frameworks2/kernel-frameworks2.tex
@@ -34,6 +34,7 @@
 #include <linux/fs.h>
 
 struct file_operations {
+    struct module *owner;
     ssize_t (*read) (struct file *, char __user *,
         size_t, loff_t *);
     ssize_t (*write) (struct file *, const char __user *,




More information about the training-materials-updates mailing list