LCOV - code coverage report
Current view: top level - io_uring - nop.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 5 0.0 %
Date: 2023-08-24 13:40:31 Functions: 0 2 0.0 %

          Line data    Source code
       1             : // SPDX-License-Identifier: GPL-2.0
       2             : #include <linux/kernel.h>
       3             : #include <linux/errno.h>
       4             : #include <linux/fs.h>
       5             : #include <linux/file.h>
       6             : #include <linux/io_uring.h>
       7             : 
       8             : #include <uapi/linux/io_uring.h>
       9             : 
      10             : #include "io_uring.h"
      11             : #include "nop.h"
      12             : 
      13           0 : int io_nop_prep(struct io_kiocb *req, const struct io_uring_sqe *sqe)
      14             : {
      15           0 :         return 0;
      16             : }
      17             : 
      18             : /*
      19             :  * IORING_OP_NOP just posts a completion event, nothing else.
      20             :  */
      21           0 : int io_nop(struct io_kiocb *req, unsigned int issue_flags)
      22             : {
      23           0 :         io_req_set_res(req, 0, 0);
      24           0 :         return IOU_OK;
      25             : }

Generated by: LCOV version 1.14