nvme_sysctl.c
Code formats a zero-padded integerSysctl handler function signature
SHA-25697507018aa7ca18961666510d78638be4ce06b95600509155b753085acef1cc7
MaleculeO(Er)H(Db₂)
Evidence
⋯4 lines
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must repr …
18:6… PLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE …
25:47… VISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#include <sys/cdefs.h>
30#include "opt_nvme.h"
31
32#include <sys/param.h>
33#include <sys/systm.h>
34#include <sys/bus.h>
35#include <sys/sysctl.h>
36
37#include "nvme_private.h"
38
39#ifndef NVME_USE_NVD
⋯5 lines
64:15… < qpair->num_entries; i++) {
65 cpl = &qpair->cpl[i];
66 printf("%05d: ", i);
67 nvme_qpair_print_completion(qpair, cpl);
68 }
⋯8 lines
77
78static int
79nvme_sysctl_dump_debug(SYSCTL_HANDLER_ARGS)
80{
81 struct nvme_qpair *qpair = arg1;
⋯6 lines
349:15… _oid_list *ctrlr_list, *ioq_list;
350#define QUEUE_NAME_LENGTH 16
351 char queue_name[QUEUE_NAME_LENGTH];
352 int i;
353
354 ctrlr_ctx = device_get_sysctl_ctx(ctrlr->dev);
355 ctrlr_tree = device_get_sysctl_tree(ctrlr->dev); …