From 98a7eae9c0cdb31a48c79b34c5f263916a8c1390 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 12 Apr 2015 16:38:39 +0200 Subject: [PATCH] segment(3): document fixed segment creation --- sys/man/3/segment | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/sys/man/3/segment b/sys/man/3/segment index 1a8e5e71e..1564ee0b9 100644 --- a/sys/man/3/segment +++ b/sys/man/3/segment @@ -56,7 +56,7 @@ retrieves and sets the segment's properties. There is only one control message, which sets the segment's virtual address and length in bytes: .EX - va \fIaddress length\fP + va \fIaddress length type\fP .EE .I Address is automatically rounded down to a page boundary and @@ -64,6 +64,12 @@ is automatically rounded down to a page boundary and is rounded up to end the segment at a page boundary. The segment will reside at the same virtual address in all processes sharing it. +Optionally, +.I type +can be specified as +.B fixed +to create a physically continuous segment with a fixed +physical base address suitable for hardware DMA access. When the segment is attached using .IR segattach, @@ -75,7 +81,9 @@ Once the address and length are set, they cannot be reset. .PP Reading the control file returns a message of the same format with the segment's actual -start address and length. +start address and length. For +.B fixed +segments, the type and physical base address are appended. .PP Opening .B data