drivers/net/fddi/skfp/h/mbuf.h

Source file repositories/reference/linux-study-clean/drivers/net/fddi/skfp/h/mbuf.h

File Facts

System
Linux kernel
Corpus path
drivers/net/fddi/skfp/h/mbuf.h
Extension
.h
Size
1117 bytes
Lines
47
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

struct s_mbuf {
	struct s_mbuf	*sm_next ;		/* low level linked list */
	short		sm_off ;			/* offset in m_data */
	u_int		sm_len ;			/* len of data */
#ifdef	PCI
	int		sm_use_count ;
#endif
	char		sm_data[M_SIZE] ;
} ;

typedef struct s_mbuf SMbuf ;

/* mbuf head, to typed data */
#define	smtod(x,t)	((t)((x)->sm_data + (x)->sm_off))
#define	smtodoff(x,t,o)	((t)((x)->sm_data + (o)))

#endif	/* _MBUF_ */

Annotation

Implementation Notes