LCOV - code coverage report
Current view: top level - shared - loop-util.h (source / functions) Hit Total Coverage
Test: systemd_full.info Lines: 1 1 100.0 %
Date: 2019-08-23 13:36:53 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 1 2 50.0 %

           Branch data     Line data    Source code
       1                 :            : /* SPDX-License-Identifier: LGPL-2.1+ */
       2                 :            : #pragma once
       3                 :            : 
       4                 :            : #include "macro.h"
       5                 :            : 
       6                 :            : typedef struct LoopDevice LoopDevice;
       7                 :            : 
       8                 :            : /* Some helpers for setting up loopback block devices */
       9                 :            : 
      10                 :            : struct LoopDevice {
      11                 :            :         int fd;
      12                 :            :         int nr;
      13                 :            :         char *node;
      14                 :            :         bool relinquished;
      15                 :            : };
      16                 :            : 
      17                 :            : int loop_device_make(int fd, int open_flags, LoopDevice **ret);
      18                 :            : int loop_device_make_by_path(const char *path, int open_flags, LoopDevice **ret);
      19                 :            : 
      20                 :            : LoopDevice* loop_device_unref(LoopDevice *d);
      21         [ -  + ]:         32 : DEFINE_TRIVIAL_CLEANUP_FUNC(LoopDevice*, loop_device_unref);
      22                 :            : 
      23                 :            : void loop_device_relinquish(LoopDevice *d);

Generated by: LCOV version 1.14