Commit 1dd0d85f authored by David Anderson's avatar David Anderson Committed by Mikio Hara

bpf: correct spelling of marshaling in package doc.

Change-Id: Ied9b2589b4aa5cb445dd368864df047c84848a95
Reviewed-on: https://go-review.googlesource.com/21217Reviewed-by: 's avatarMikio Hara <mikioh.mikioh@gmail.com>
parent 27276f6b
......@@ -4,16 +4,16 @@
/*
Package bpf implements marshalling and unmarshalling of programs
for the Berkeley Packet Filter virtual machine.
BPF's main use is to specify a packet filter for network taps, so
that the kernel doesn't have to expensively copy every packet it
sees to userspace. However, it's been repurposed to other areas
where running user code in-kernel is needed. For example, Linux's
seccomp uses BPF to apply security policies to system calls. For
simplicity, this documentation refers only to packets, but other
uses of BPF have their own data payloads.
Package bpf implements marshaling and unmarshaling of programs for the
Berkeley Packet Filter virtual machine.
BPF's main use is to specify a packet filter for network taps, so that
the kernel doesn't have to expensively copy every packet it sees to
userspace. However, it's been repurposed to other areas where running
user code in-kernel is needed. For example, Linux's seccomp uses BPF
to apply security policies to system calls. For simplicity, this
documentation refers only to packets, but other uses of BPF have their
own data payloads.
BPF programs run in a restricted virtual machine. It has almost no
access to kernel functions, and while conditional branches are
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment