This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Give special attributes to a shared memory object
#include <sys/mman.h> int shm_ctl_special( int fd, int flags, _uint64 paddr, _uint64 size, unsigned special );
Some of the bits have specific meanings for different processors. For more information, see the documentation for shm_ctl(). |
This argument is currently used only on SH4 platforms. On SH4 7760, it controls the space attribute bits of the UTLB (see section 6.3.1 of 7760 hardware manual).
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The shm_ctl_special() function modifies the attributes of the shared memory object identified by the handle, fd. This handle is the value returned by shm_open().
The shm_ctl_special() function is similar to shm_ctl(), but has an additional processor-specific argument, special. Calling shm_ctl_special() with a value of 0 for special is equivalent to calling shm_ctl().
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
mmap(), munmap(), mprotect(), shm_ctl(), shm_open(), shm_unlink(), ThreadCtl()