Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
torvalds
GitHub Repository: torvalds/linux
Path: blob/master/net/dsa/devlink.h
26278 views
1
/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3
#ifndef __DSA_DEVLINK_H
4
#define __DSA_DEVLINK_H
5
6
struct dsa_port;
7
struct dsa_switch;
8
9
int dsa_port_devlink_setup(struct dsa_port *dp);
10
void dsa_port_devlink_teardown(struct dsa_port *dp);
11
void dsa_switch_devlink_register(struct dsa_switch *ds);
12
void dsa_switch_devlink_unregister(struct dsa_switch *ds);
13
int dsa_switch_devlink_alloc(struct dsa_switch *ds);
14
void dsa_switch_devlink_free(struct dsa_switch *ds);
15
16
#endif
17
18