include/net/netns/hash.h

Source file repositories/reference/linux-study-clean/include/net/netns/hash.h

File Facts

System
Linux kernel
Corpus path
include/net/netns/hash.h
Extension
.h
Size
212 bytes
Lines
12
Domain
Networking Core
Bucket
Sockets, Protocols, Packet Path, And Network Policy
Inferred role
Networking Core: implementation source
Status
source implementation candidate

Why This File Exists

Networking stack implementation surface: socket APIs, protocol dispatch, packet flow, routing, filtering, and network namespaces.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef __NET_NS_HASH_H__
#define __NET_NS_HASH_H__

#include <net/net_namespace.h>

static inline u32 net_hash_mix(const struct net *net)
{
	return net->hash_mix;
}
#endif

Annotation

Implementation Notes