Benign freebsd Download

ctl_frontend.c

TAILQ list manipulation in kernel markerd_name strcmp directory filter
SHA-2567afb82e522187f1b21fa27bdaa78097c37cfa2c82feb08422eea91cb7dcce5c7
MaleculeO(Er)H(F)

Evidence

English function-word token "the" lines 5–14
5:59… g>
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:
11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions, and the following disclaimer,
13 * without modification.
14 * 2. Redistribut …
English function-word token "for" lines 17–21
17:16… a substantially similar Disclaimer requirement for further
18 * binary redistribution.
19 *
20 * NO WARRANTY
21 * THIS SOFTWARE IS PROVIDED BY THE COPY …
imports <cam/ctl/ctl.h> lines 36–70
36:44… e
37 *
38 * Author: Ken Merry <ken@FreeBSD.org>
39 */
40
41#include <sys/param.h>
42#include <sys/systm.h>
43#include <sys/kernel.h>
44#include <sys/types.h>
45#include <sys/malloc.h>
46#include <sys/lock.h>
47#include <sys/mutex.h>
48#include <sys/condvar.h>
49#include <sys/endian.h>
50#include <sys/queue.h>
51#include <sys/sysctl.h>
52#include <sys/nv.h>
53#include <sys/dnv.h>
54
55#include <cam/scsi/scsi_all.h>
56#include <cam/scsi/scsi_da.h>
57#include <cam/ctl/ctl_io.h>
58#include <cam/ctl/ctl.h>
59#include <cam/ctl/ctl_frontend.h>
60#include <cam/ctl/ctl_backend.h>
61/* XXX KDM move defines from ctl_ioctl.h to somewhere else */
62#include <cam/ctl/ctl_ioctl.h>
63#include <cam/ctl/ctl_ha.h>
64#include <cam/ctl/ctl_private.h>
65#include <cam/ctl/ctl_debug.h>
66
67int
68ctl_frontend_register(struct ctl_frontend *fe)
69{
70 struct ctl_softc *softc = control_softc; …
d_name strcmp directory filter lines 131–143
131:18… >ctl_lock);
132 STAILQ_FOREACH(fe, &softc->fe_list, links) {
133 if (strcmp(fe->name, frontend_name) == 0) {
134 mtx_unlock(&softc->ctl_lock);
135 return (fe);
⋯8 lines
TAILQ list manipulation in kernel marker lines 208–214
208:17… LL && nport->targ_port < port_num;
209 tport = nport, nport = STAILQ_NEXT(tport, links)) {
210 }
211 if (tport)
212 STAILQ_INSERT_AFTER(&softc->port_list, tport, port, links);
213 else
214 STAILQ_INSERT_HEAD(&softc …

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.