include/linux/mroute6.h
Source file repositories/reference/linux-study-clean/include/linux/mroute6.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/mroute6.h- Extension
.h- Size
- 3204 bytes
- Lines
- 148
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/pim.hlinux/skbuff.hnet/net_namespace.huapi/linux/mroute6.hlinux/mroute_base.hlinux/sockptr.hnet/fib_rules.h
Detected Declarations
struct sockstruct mfc6_cache_cmp_argstruct mfc6_cachestruct rtmsgfunction ip6_mroute_optfunction ip6_mroute_optfunction ip6_mroute_setsockoptfunction ip6_mroute_getsockoptfunction ip6mr_ioctlfunction ip6_mr_initfunction ip6_mr_outputfunction ip6_mr_cleanupfunction ip6mr_rule_defaultfunction ip6mr_sk_ioctlfunction mroute6_is_socketfunction ip6mr_sk_donefunction ip6mr_sk_ioctl
Annotated Snippet
struct mfc6_cache_cmp_arg {
struct in6_addr mf6c_mcastgrp;
struct in6_addr mf6c_origin;
};
struct mfc6_cache {
struct mr_mfc _c;
union {
struct {
struct in6_addr mf6c_mcastgrp;
struct in6_addr mf6c_origin;
};
struct mfc6_cache_cmp_arg cmparg;
};
};
#define MFC_ASSERT_THRESH (3*HZ) /* Maximal freq. of asserts */
struct rtmsg;
extern int ip6mr_get_route(struct net *net, struct sk_buff *skb,
struct rtmsg *rtm, u32 portid);
#ifdef CONFIG_IPV6_MROUTE
bool mroute6_is_socket(struct net *net, struct sk_buff *skb);
extern int ip6mr_sk_done(struct sock *sk);
static inline int ip6mr_sk_ioctl(struct sock *sk, unsigned int cmd,
void __user *arg)
{
switch (cmd) {
/* These userspace buffers will be consumed by ip6mr_ioctl() */
case SIOCGETMIFCNT_IN6: {
struct sioc_mif_req6 buffer;
return sock_ioctl_inout(sk, cmd, arg, &buffer,
sizeof(buffer));
}
case SIOCGETSGCNT_IN6: {
struct sioc_sg_req6 buffer;
return sock_ioctl_inout(sk, cmd, arg, &buffer,
sizeof(buffer));
}
}
return 1;
}
#else
static inline bool mroute6_is_socket(struct net *net, struct sk_buff *skb)
{
return false;
}
static inline int ip6mr_sk_done(struct sock *sk)
{
return 0;
}
static inline int ip6mr_sk_ioctl(struct sock *sk, unsigned int cmd,
void __user *arg)
{
return 1;
}
#endif
#endif
Annotation
- Immediate include surface: `linux/pim.h`, `linux/skbuff.h`, `net/net_namespace.h`, `uapi/linux/mroute6.h`, `linux/mroute_base.h`, `linux/sockptr.h`, `net/fib_rules.h`.
- Detected declarations: `struct sock`, `struct mfc6_cache_cmp_arg`, `struct mfc6_cache`, `struct rtmsg`, `function ip6_mroute_opt`, `function ip6_mroute_opt`, `function ip6_mroute_setsockopt`, `function ip6_mroute_getsockopt`, `function ip6mr_ioctl`, `function ip6_mr_init`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.