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:
Jukka Laitinen
2023-01-02 17:02:51 +04:00
committed by Alan Carvalho de Assis
parent 41e9df2f3e
commit f33dc4df3f
111 changed files with 320 additions and 96 deletions
@@ -297,6 +297,7 @@ static const struct file_operations g_slcdops =
NULL, /* seek */
slcd_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */
slcd_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
@@ -269,6 +269,7 @@ static const struct file_operations tc_fops =
NULL, /* seek */
tc_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */
tc_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */
@@ -347,6 +347,7 @@ static const struct file_operations g_slcdops =
NULL, /* seek */
slcd_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */
slcd_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, NULL /* unlink */