Libcudest: Difference between revisions

Line 6: Line 6:
* VDSO. read-execute-private, one page, high in memory (SYSENTER/SYSEXIT)
* VDSO. read-execute-private, one page, high in memory (SYSENTER/SYSEXIT)
* Userspace stack. read-write-private, many pages, high in memory
* Userspace stack. read-write-private, many pages, high in memory
* Anonymous map, 3 read-write-private pages, high in memory.
** Possibly associated with nvidia driver's NV_STACK_SIZE stack. read-write-private, (3 * 4096 on amd64, 2 * 4096 on i686)
* Two sets of /dev/nvidiaX maps for each bound device. Sets are usually continguous, and contain:
* Two sets of /dev/nvidiaX maps for each bound device. Sets are usually continguous, and contain:
** an anonymous page, read-write-private
** an anonymous page, read-write-private
** several mappings of the device, having variable number of pages, all read-write-shared
** several mappings of the device, having variable number of pages, all read-write-shared
* Map of nvidia driver's NV_STACK_SIZE stack. read-write-private, (3 * 4096 on amd64, 2 * 4096 on i686), high in memory
* Libraries. variable, middle of memory.
* Libraries. variable, middle of memory.
* Userspace heap. read-write-private, many pages, low in memory
* Userspace heap. read-write-private, many pages, low in memory
* Application (data region). read-write-private, variable, low in memory
* Application (data region). read-write-private, variable, low in memory
* Application (text region). read-execute-private, variable, usually lowest mapping
* Application (text region). read-execute-private, variable, usually lowest mapping
==ioctls==
==ioctls==
An ioctl (on x86) is 32 bits. The following definition comes from <texttt>linux/asm-generic/ioctl.h</texttt> in a 2.6.34 kernel:
An ioctl (on x86) is 32 bits. The following definition comes from <texttt>linux/asm-generic/ioctl.h</texttt> in a 2.6.34 kernel: