LCOV - code coverage report
Current view: top level - fs/autofs - init.c (source / functions) Hit Total Coverage
Test: Real Lines: 7 12 58.3 %
Date: 2020-10-17 15:46:16 Functions: 0 3 0.0 %
Legend: Neither, QEMU, Real, Both Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // SPDX-License-Identifier: GPL-2.0-or-later
       2                 :            : /*
       3                 :            :  * Copyright 1997-1998 Transmeta Corporation -- All Rights Reserved
       4                 :            :  */
       5                 :            : 
       6                 :            : #include <linux/module.h>
       7                 :            : #include <linux/init.h>
       8                 :            : #include "autofs_i.h"
       9                 :            : 
      10                 :          3 : static struct dentry *autofs_mount(struct file_system_type *fs_type,
      11                 :            :         int flags, const char *dev_name, void *data)
      12                 :            : {
      13                 :          3 :         return mount_nodev(fs_type, flags, data, autofs_fill_super);
      14                 :            : }
      15                 :            : 
      16                 :            : struct file_system_type autofs_fs_type = {
      17                 :            :         .owner          = THIS_MODULE,
      18                 :            :         .name           = "autofs",
      19                 :            :         .mount          = autofs_mount,
      20                 :            :         .kill_sb        = autofs_kill_sb,
      21                 :            : };
      22                 :            : MODULE_ALIAS_FS("autofs");
      23                 :            : MODULE_ALIAS("autofs");
      24                 :            : 
      25                 :          3 : static int __init init_autofs_fs(void)
      26                 :            : {
      27                 :            :         int err;
      28                 :            : 
      29                 :          3 :         autofs_dev_ioctl_init();
      30                 :            : 
      31                 :          3 :         err = register_filesystem(&autofs_fs_type);
      32                 :          3 :         if (err)
      33                 :          0 :                 autofs_dev_ioctl_exit();
      34                 :            : 
      35                 :          3 :         return err;
      36                 :            : }
      37                 :            : 
      38                 :          0 : static void __exit exit_autofs_fs(void)
      39                 :            : {
      40                 :          0 :         autofs_dev_ioctl_exit();
      41                 :          0 :         unregister_filesystem(&autofs_fs_type);
      42                 :          0 : }
      43                 :            : 
      44                 :            : module_init(init_autofs_fs)
      45                 :            : module_exit(exit_autofs_fs)
      46                 :            : MODULE_LICENSE("GPL");
    

Generated by: LCOV version 1.14