include/uapi/linux/dns_resolver.h
Source file repositories/reference/linux-study-clean/include/uapi/linux/dns_resolver.h
File Facts
- System
- Linux kernel
- Corpus path
include/uapi/linux/dns_resolver.h- Extension
.h- Size
- 3904 bytes
- Lines
- 117
- 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/types.h
Detected Declarations
struct dns_payload_headerstruct dns_server_list_v1_headerstruct dns_server_list_v1_serverstruct dns_server_list_v1_addressenum dns_payload_content_typeenum dns_payload_address_typeenum dns_payload_protocol_typeenum dns_record_sourceenum dns_lookup_status
Annotated Snippet
struct dns_payload_header {
__u8 zero; /* Zero byte: marks this as not being text */
__u8 content; /* enum dns_payload_content_type */
__u8 version; /* Encoding version */
} __packed;
/*
* Header at the beginning of a V1 server list. This is followed directly by
* the server records. Each server records begins with a struct of type
* dns_server_list_v1_server.
*/
struct dns_server_list_v1_header {
struct dns_payload_header hdr;
__u8 source; /* enum dns_record_source */
__u8 status; /* enum dns_lookup_status */
__u8 nr_servers; /* Number of server records following this */
} __packed;
/*
* Header at the beginning of each V1 server record. This is followed by the
* characters of the name with no NUL-terminator, followed by the address
* records for that server. Each address record begins with a struct of type
* struct dns_server_list_v1_address.
*/
struct dns_server_list_v1_server {
__u16 name_len; /* Length of name (LE) */
__u16 priority; /* Priority (as SRV record) (LE) */
__u16 weight; /* Weight (as SRV record) (LE) */
__u16 port; /* UDP/TCP port number (LE) */
__u8 source; /* enum dns_record_source */
__u8 status; /* enum dns_lookup_status */
__u8 protocol; /* enum dns_payload_protocol_type */
__u8 nr_addrs;
} __packed;
/*
* Header at the beginning of each V1 address record. This is followed by the
* bytes of the address, 4 for IPV4 and 16 for IPV6.
*/
struct dns_server_list_v1_address {
__u8 address_type; /* enum dns_payload_address_type */
} __packed;
#endif /* _UAPI_LINUX_DNS_RESOLVER_H */
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct dns_payload_header`, `struct dns_server_list_v1_header`, `struct dns_server_list_v1_server`, `struct dns_server_list_v1_address`, `enum dns_payload_content_type`, `enum dns_payload_address_type`, `enum dns_payload_protocol_type`, `enum dns_record_source`, `enum dns_lookup_status`.
- 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.