lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 20 Aug 2012 12:32:36 +0200 (CEST)
From:	Jan Engelhardt <jengelh@...i.de>
To:	Patrick McHardy <kaber@...sh.net>
cc:	Florian.Westphal@...hos.com, netdev@...r.kernel.org,
	netfilter-devel@...r.kernel.org
Subject: Re: [PATCH 11/11] netlink: add documentation for memory mapped I/O


On Monday 2012-08-20 08:18, Patrick McHardy wrote:
>+
>+RX and TX rings
>+----------------
>+
>+Each ring contains a number of continous memory blocks, containing frames of
>+fixed size dependant on the parameters used for ring setup.

dependent

>+The blocks are only visible to the kernel, from the point of view of user-space
>+the ring just contains the frames in a continous memory zone.

...to the kernel; from the user-space point of view, the ring...

continuous (multiple occurrences)

>+Ring frames
>+------------
>+
>+Each frames contain a frame header, consisting of a synchronization word and some

Each frame contains a frame header,

>+The possible values in the status word are:
>+
>+- NL_MMAP_STATUS_UNUSED:
>+	RX ring:	frame belongs to the kernel and contains no message

The frame (mult)

>+			for user-space. Approriate action is to invoke poll()
>+			to wait for new messages.

The appropriate (mult)

>+			if (hdr->nm_status == NL_MMAP_STATUS_VALID)
>+				/* Regular memory mapped frame */
>+				nlh = (void *hdr) + NL_MMAP_HDRLEN;

(void *)hdr + NL_MMAP_HDRLEN

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ