Benign repos Download

tw.c

Linux task signal headerLinux io_uring header
SHA-25614b5384f260335414a5c48a60d5c3338e7da0b459a582de574bb8380a268d627
MaleculeO(Er)H(Os)

Evidence

Linux task signal header lines 1–20
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Task work handling for io_uring
4 */
5#include <linux/kernel.h>
6#include <linux/errno.h>
7#include <linux/sched/signal.h>
8#include <linux/io_uring.h>
9#include <linux/indirect_call_wrapper.h>
10
11#include "io_uring.h"
12#include "tctx.h"
13#include "poll.h"
14#include "rw.h"
15#include "eventfd.h"
16#include "wait.h"
17
18void io_fallback_req_func(struct work_struct *work)
19{
20 struct io_ring_ctx *ctx = container_o …
English function-word token "the" lines 45–53
45:23… refs);
46}
47
48/*
49 * Run queued task_work, returning the number of entries processed in *count.
50 * If more entries than max_entries are available, stop processing once this
51 * is reached and return the rest of the list.
52 */
53struct llist_node *io_handle_tw_list(struct llist_node *node,
English function-word token "with" lines 156–157
156:2… * Sets IORING_SQ_TASKRUN in the sq_flags shared with userspace, using the
157 * RCU protected rings pointer to be safe against concurrent ring resizing …
English function-word token "that" lines 200–206
200:4…
201
202 /*
203 * Theoretically, it can overflow, but that's fine as one of
204 * previous adds should've tried to wake the task.
205 */
206 nr_tw = nr_tw_pre …
Kernel error code return lines 321–328
321:5… ret = 0;
322
323 if (WARN_ON_ONCE(ctx->submitter_task != current))
324 return -EEXIST;
325 if (ctx->flags & IORING_SETUP_TASKRUN_FLAG)
326 atomic_andnot(IORING_SQ_TASKRUN, &ctx->rings->sq_flags);
327again:
328 tw.cancel = io …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.