drivers/net/ethernet/fungible/funeth/funeth_devlink.c

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/fungible/funeth/funeth_devlink.c

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/fungible/funeth/funeth_devlink.c
Extension
.c
Size
534 bytes
Lines
28
Domain
Driver Families
Bucket
drivers/net
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

// SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause)

#include "funeth.h"
#include "funeth_devlink.h"

static const struct devlink_ops fun_dl_ops = {
};

struct devlink *fun_devlink_alloc(struct device *dev)
{
	return devlink_alloc(&fun_dl_ops, sizeof(struct fun_ethdev), dev);
}

void fun_devlink_free(struct devlink *devlink)
{
	devlink_free(devlink);
}

void fun_devlink_register(struct devlink *devlink)
{
	devlink_register(devlink);
}

void fun_devlink_unregister(struct devlink *devlink)
{
	devlink_unregister(devlink);
}

Annotation

Implementation Notes