Освободить доступ к регистрам устройства
#include <sys/mman.h>
int munmap_device_io( uintptr_t io,
size_t len );
- io
- The address of the area that you want to unmap.
- len
- The number of bytes of device I/O memory that you want to unmap.
libc
The function munmap_device_io() unmaps len bytes of device I/O memory at io (that was previously mapped with mmap_device_io()).
- -1
- Возникла ошибка. Код ошибки записан в errno.
- ≠-1
- Успешное завершение.
- EINVAL
- The addresses in the specified range are outside the range allowed for the address space of a process.
- ENOSYS
- The function munmap() isn't supported by this implementation.
- ENXIO
- The address from io for len bytes is invalid.
ЗОСРВ «Нейтрино»
- Точка остановки потока
- Нет
- Обработчик прерываний
- Нет
- Обработчик сигналов
- Да
- В потоке
- Да
mmap_device_io(), munmap()
Предыдущий раздел: Описание API системной библиотеки