drivers/net/ethernet/mellanox/mlx5/core/lib/hv.h

Source file repositories/reference/linux-study-clean/drivers/net/ethernet/mellanox/mlx5/core/lib/hv.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ethernet/mellanox/mlx5/core/lib/hv.h
Extension
.h
Size
667 bytes
Lines
23
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

#ifndef __LIB_HV_H__
#define __LIB_HV_H__

#if IS_ENABLED(CONFIG_PCI_HYPERV_INTERFACE)

#include <linux/hyperv.h>
#include <linux/mlx5/driver.h>

int mlx5_hv_read_config(struct mlx5_core_dev *dev, void *buf, int len,
			int offset);
int mlx5_hv_write_config(struct mlx5_core_dev *dev, void *buf, int len,
			 int offset);
int mlx5_hv_register_invalidate(struct mlx5_core_dev *dev, void *context,
				void (*block_invalidate)(void *context,
							 u64 block_mask));
void mlx5_hv_unregister_invalidate(struct mlx5_core_dev *dev);
#endif

#endif /* __LIB_HV_H__ */

Annotation

Implementation Notes