Benign repos Download

fbnic_debugfs.c

Code formats a zero-padded integerC declares a character or byte buffer
SHA-25646cf448aea14aa9f747a50db9b8645f074ba99f20897e8716dfa14e0169939a3

Evidence

imports fbnic.h lines 1–24
1// SPDX-License-Identifier: GPL-2.0
2/* Copyright (c) Meta Platforms, Inc. and affiliates. */
3
4#include <linux/debugfs.h>
5#include <linux/pci.h>
6#include <linux/rtnetlink.h>
7#include <linux/seq_file.h>
8
9#include "fbnic.h"
10#include "fbnic_txrx.h"
11
12static struct dentry *fbnic_dbg_root;
⋯12 lines
C declares a character or byte buffer lines 107–116
107:47… seq_file *s, void *v)
108{
109 struct fbnic_ring *ring = s->private;
110 char hdr[80];
111 int i;
112
⋯4 lines
English function-word token "for" lines 122–132
122:21… iptor ring not allocated.\n");
123 return 0;
124 }
125
126 for (i = 0; i <= ring->size_mask; i++)
127 fbnic_dbg_twd_desc_seq_show(s, i);
128
⋯4 lines
Kernel error code return lines 300–315
300:24… EAD:
301 show = fbnic_dbg_rcq_desc_seq_show;
302 break;
303 default:
304 return -EINVAL;
305 }
306
307 return single_open(file, show, ring);
308}
309
310static const struct file_operations fbnic_dbg_desc_fops = {
311 .owner = THIS_MODULE,
312 .open = fbnic_dbg_desc_open,
313 .read = seq_read,
314 .llseek = seq_lseek,
315 .release = single_r …

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.