drivers/block/null_blk/Makefile

Source file repositories/reference/linux-study-clean/drivers/block/null_blk/Makefile

File Facts

System
Linux kernel
Corpus path
drivers/block/null_blk/Makefile
Extension
[no extension]
Size
281 bytes
Lines
12
Domain
Driver Families
Bucket
drivers/block
Inferred role
Driver Families: build/configuration rule
Status
atlas-only

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

# needed for trace events
ccflags-y			+= -I$(src)

obj-$(CONFIG_BLK_DEV_NULL_BLK)	+= null_blk.o
null_blk-objs			:= main.o
ifeq ($(CONFIG_BLK_DEV_ZONED), y)
null_blk-$(CONFIG_TRACING) 	+= trace.o
endif
null_blk-$(CONFIG_BLK_DEV_ZONED) += zoned.o

Annotation

Implementation Notes