write_const_data - Modify kernel text or const data that
is replicated across RADs on a NUMA platform
const void *address,
size_t nbytes );
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.
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.
[ Back ]