mirror of
https://github.com/apache/nuttx.git
synced 2025-12-08 19:02:43 +08:00
Change FIOC_MMAP into file operation call
- Add mmap into file_operations and remove it from ioctl definitions. - Add mm_map structure definitions to support future unmapping - Modify all drivers to initialize the operations struct accordingly Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
41e9df2f3e
commit
f33dc4df3f
@@ -67,6 +67,7 @@ const struct file_operations g_nxterm_drvrops =
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
nxterm_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, nxterm_unlink /* unlink */
|
||||
@@ -84,6 +85,7 @@ const struct file_operations g_nxterm_drvrops =
|
||||
NULL, /* seek */
|
||||
nxterm_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, nxterm_unlink /* unlink */
|
||||
|
||||
Reference in New Issue
Block a user