write_const_data(9)write_const_data(9)NAMEwrite_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
Points to the starting address of the text to be written. Points to
the address where modification starts. 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 automatā
ically 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.
write_const_data(9)