Benign repos Download

region.c

Includes Linux kernel module headerAssigns a negative errno constant
SHA-256500f26c4ac68726d06e86dae2d9c84e55d4029c8263c97d001fd564421374e90
MaleculeO(Er)H(Os)

Evidence

Includes Linux kernel module header lines 1–24
1// SPDX-License-Identifier: GPL-2.0-only
2/* Copyright(c) 2022 Intel Corporation. All rights reserved. */
3#include <linux/memregion.h>
4#include <linux/genalloc.h>
5#include <linux/debugfs.h>
6#include <linux/device.h>
7#include <linux/module.h>
8#include <linux/memory.h>
9#include <linux/slab.h>
10#include <linux/uuid.h>
11#include <linux/sort.h>
12#include <linux/idr.h>
13#include <linux/memory-tiers.h>
14#include <linux/string_choices.h>
15#include <cxlmem.h>
16#include <cxl.h>
17#include "core.h"
18
19/**
20 * DOC: cxl core region
21 *
22 * CXL Regions represent mapped memory capacity in system physical address
23 * space. Whereas the CXL Root Decoders identify the bounds of potential CXL
24 * Memory ranges, Regions represent the …
English function-word token "and" lines 25–37
25:25… ructures throughout the Host Bridges, Switches, and
26 * Endpoints in the topology.
27 *
28 * Region configuration has ordering constraints. UUID may be set at any time
29 * but is only visible for persistent regions.
30 * 1. Interleave granularity
31 * 2. Interleave size
32 * 3. Decoder targets
33 */
34
35/*
36 * nodemask that sets per node when the access_coordinates for the node has
37 * been updated by the CXL memory ho …
Kernel error code return lines 57–63
57:4… \
58 if (cxlr->coord[level].attrib == 0) \
59 return -ENOENT; \
60 \
61 return sysfs_emit(buf, "%u\n", cxlr->coord[level].attrib); \
62} \
63static ACC …
English function-word token "this" lines 251–259
251:9… t_bit(CXL_REGION_F_LOCK, &cxlr->flags))
252 return;
253
254 /*
255 * Before region teardown attempt to flush, evict any data cached for
256 * this region, or scream loudly about missing arch / platform support
257 * for CXL teardown.
258 */
259 cxl_ …
Assigns a negative errno constant lines 1215–1227
1215:47… ),
1216 dev_name(&cxled->cxld.dev), pos,
1217 cxlsd->nr_targets);
1218 rc = -ENXIO;
1219 goto out_erase;
1220 }
⋯7 lines

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.