drivers/net/ovpn/socket.h

Source file repositories/reference/linux-study-clean/drivers/net/ovpn/socket.h

File Facts

System
Linux kernel
Corpus path
drivers/net/ovpn/socket.h
Extension
.h
Size
1290 bytes
Lines
50
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 ovpn_socket {
	union {
		struct {
			struct ovpn_priv *ovpn;
			netdevice_tracker dev_tracker;
		};
		struct ovpn_peer *peer;
	};

	struct sock *sk;
	struct kref refcount;
	struct work_struct work;
	struct work_struct tcp_tx_work;
};

struct ovpn_socket *ovpn_socket_new(struct socket *sock,
				    struct ovpn_peer *peer);
void ovpn_socket_release(struct ovpn_peer *peer);

#endif /* _NET_OVPN_SOCK_H_ */

Annotation

Implementation Notes