Index Index for
Section 9
Index Alphabetical
listing for W
Bottom of page Bottom of
page

write_const_data(9)

NAME

write_const_data - Modify kernel text or const data that is replicated across RADs on a NUMA platform

SYNOPSIS

#include <sys/systm.h> void write_const_data( void *source, const void *address, size_t nbytes );

PARAMETERS

source Points to the starting address of the text to be written. address Points to the address where modification starts. nbytes Specifies the number of bytes to be copied.

DESCRIPTION

The write_const_data() function modifies kernel text or const data that has been replicated in memory accessed by different CPUs. This function also ensures that the modifications are visible to all CPUs by automatically notifying the CPUs of the change so that they can flush stale data from their instruction caches. Starting with Tru64 UNIX Version 5.1, kernel programs must use write_const_data() to modify kernel data structures, such as the system call table. This requirement does not affect most kernel applications, which typically do not modify replicated kernel text or const data.

Index Index for
Section 9
Index Alphabetical
listing for W
Top of page Top of
page