mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +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
@@ -458,12 +458,11 @@ are two conditions where ``mmap()`` can be supported:
|
|||||||
1. ``mmap()`` can be used to support *eXecute In Place* (XIP) on random
|
1. ``mmap()`` can be used to support *eXecute In Place* (XIP) on random
|
||||||
access media under the following very restrictive conditions:
|
access media under the following very restrictive conditions:
|
||||||
|
|
||||||
a. The file-system supports the ``FIOC_MMAP`` ioctl command. Any file
|
a. Any file system that maps files contiguously on the media
|
||||||
system that maps files contiguously on the media should support
|
should implement the mmap file operation. By comparison, most
|
||||||
this ``ioctl`` command. By comparison, most file system scatter
|
file system scatter files over the media in non-contiguous
|
||||||
files over the media in non-contiguous sectors. As of this
|
sectors. As of this writing, ROMFS is the only file system
|
||||||
writing, ROMFS is the only file system that meets this
|
that meets this requirement.
|
||||||
requirement.
|
|
||||||
|
|
||||||
b. The underlying block driver supports the ``BIOC_XIPBASE``
|
b. The underlying block driver supports the ``BIOC_XIPBASE``
|
||||||
``ioctl`` command that maps the underlying media to a randomly
|
``ioctl`` command that maps the underlying media to a randomly
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ static const struct file_operations g_geofencefops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cxd56_geofence_ioctl, /* ioctl */
|
cxd56_geofence_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
cxd56_geofence_poll /* poll */
|
cxd56_geofence_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -318,6 +318,7 @@ static const struct file_operations g_gnssfops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cxd56_gnss_ioctl, /* ioctl */
|
cxd56_gnss_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
cxd56_gnss_poll /* poll */
|
cxd56_gnss_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ static const struct file_operations g_hif_fops =
|
|||||||
hif_seek, /* seek */
|
hif_seek, /* seek */
|
||||||
hif_ioctl, /* ioctl */
|
hif_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
hif_poll /* poll */
|
hif_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, hif_unlink /* unlink */
|
, hif_unlink /* unlink */
|
||||||
|
|||||||
@@ -250,6 +250,7 @@ static const struct file_operations g_tsdops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
sam_tsd_ioctl, /* ioctl */
|
sam_tsd_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
sam_tsd_poll /* poll */
|
sam_tsd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -297,6 +297,7 @@ static const struct file_operations g_slcdops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
slcd_ioctl, /* ioctl */
|
slcd_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
slcd_poll /* poll */
|
slcd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -269,6 +269,7 @@ static const struct file_operations tc_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
tc_ioctl, /* ioctl */
|
tc_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
tc_poll /* poll */
|
tc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -347,6 +347,7 @@ static const struct file_operations g_slcdops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
slcd_ioctl, /* ioctl */
|
slcd_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
slcd_poll /* poll */
|
slcd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -250,6 +250,7 @@ static const struct file_operations tc_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
tc_ioctl, /* ioctl */
|
tc_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
tc_poll /* poll */
|
tc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -182,6 +182,7 @@ static const struct file_operations g_lcdops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
lcd_ioctl, /* ioctl */
|
lcd_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
lcd_poll /* poll */
|
lcd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -126,6 +126,7 @@ static const struct file_operations g_cryptofops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cryptof_ioctl, /* ioctl */
|
cryptof_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
cryptof_poll /* poll */
|
cryptof_poll /* poll */
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -138,6 +139,7 @@ static const struct file_operations g_cryptoops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cryptoioctl, /* ioctl */
|
cryptoioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ static const struct file_operations g_adc_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
adc_ioctl, /* ioctl */
|
adc_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
adc_poll /* poll */
|
adc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ static const struct file_operations comp_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
comp_ioctl, /* ioctl */
|
comp_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
comp_poll /* poll */
|
comp_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -79,6 +79,7 @@ const struct file_operations bch_fops =
|
|||||||
bch_seek, /* seek */
|
bch_seek, /* seek */
|
||||||
bch_ioctl, /* ioctl */
|
bch_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
bch_poll /* poll */
|
bch_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, bch_unlink /* unlink */
|
, bch_unlink /* unlink */
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ static const struct file_operations g_canops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
can_ioctl, /* ioctl */
|
can_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
can_poll /* poll */
|
can_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ static const struct file_operations g_urand_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
devurand_poll /* poll */
|
devurand_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -100,6 +100,7 @@ static const struct file_operations i2cdrvr_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
i2cdrvr_ioctl, /* ioctl */
|
i2cdrvr_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, i2cdrvr_unlink /* unlink */
|
, i2cdrvr_unlink /* unlink */
|
||||||
|
|||||||
@@ -123,6 +123,7 @@ static const struct file_operations ads7843e_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ads7843e_ioctl, /* ioctl */
|
ads7843e_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
ads7843e_poll /* poll */
|
ads7843e_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ static const struct file_operations ajoy_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ajoy_ioctl, /* ioctl */
|
ajoy_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
ajoy_poll /* poll */
|
ajoy_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -134,6 +134,7 @@ static const struct file_operations btn_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
btn_ioctl, /* ioctl */
|
btn_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
btn_poll /* poll */
|
btn_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -225,6 +225,7 @@ static const struct file_operations g_mbr3108_fileops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
mbr3108_poll /* poll */
|
mbr3108_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -136,6 +136,7 @@ static const struct file_operations djoy_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
djoy_ioctl, /* ioctl */
|
djoy_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
djoy_poll /* poll */
|
djoy_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ static const struct file_operations ft5x06_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ft5x06_ioctl, /* ioctl */
|
ft5x06_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
ft5x06_poll /* poll */
|
ft5x06_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -89,6 +89,7 @@ static const struct file_operations g_keyboard_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
keyboard_poll /* poll */
|
keyboard_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -116,6 +116,7 @@ static const struct file_operations max11802_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
max11802_ioctl, /* ioctl */
|
max11802_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
max11802_poll /* poll */
|
max11802_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -281,6 +281,7 @@ static const struct file_operations mxt_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
mxt_ioctl, /* ioctl */
|
mxt_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
mxt_poll /* poll */
|
mxt_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -256,6 +256,7 @@ static const struct file_operations g_hidkbd_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
spq10kbd_poll /* poll */
|
spq10kbd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -125,6 +125,7 @@ static const struct file_operations g_stmpe811fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
stmpe811_ioctl, /* ioctl */
|
stmpe811_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
stmpe811_poll /* poll */
|
stmpe811_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -91,6 +91,7 @@ static const struct file_operations g_touch_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
touch_ioctl, /* ioctl */
|
touch_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
touch_poll /* poll */
|
touch_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -210,6 +210,7 @@ static const struct file_operations tsc2007_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
tsc2007_ioctl, /* ioctl */
|
tsc2007_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
tsc2007_poll /* poll */
|
tsc2007_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -135,6 +135,7 @@ static const struct file_operations g_ft80x_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ft80x_ioctl, /* ioctl */
|
ft80x_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, ft80x_unlink /* unlink */
|
, ft80x_unlink /* unlink */
|
||||||
|
|||||||
@@ -118,6 +118,7 @@ static const struct file_operations g_pcf8574_lcd_fops =
|
|||||||
pcf8574_lcd_seek, /* seek */
|
pcf8574_lcd_seek, /* seek */
|
||||||
pcf8574_lcd_ioctl, /* ioctl */
|
pcf8574_lcd_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
pcf8574_lcd_poll /* poll */
|
pcf8574_lcd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, pcf8574_lcd_unlink /* unlink */
|
, pcf8574_lcd_unlink /* unlink */
|
||||||
|
|||||||
@@ -171,6 +171,7 @@ static const struct file_operations tda19988_fops =
|
|||||||
tda19988_seek, /* seek */
|
tda19988_seek, /* seek */
|
||||||
tda19988_ioctl, /* ioctl */
|
tda19988_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
tda19988_poll /* poll */
|
tda19988_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, tda19988_unlink /* unlink */
|
, tda19988_unlink /* unlink */
|
||||||
|
|||||||
@@ -182,8 +182,8 @@ static const struct file_operations g_ws2812fops =
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* #### TODO ####
|
* #### TODO ####
|
||||||
*
|
*
|
||||||
* Consider supporting mmap by returning memory buffer using...
|
* Consider supporting mmap by returning memory buffer using file_operations'
|
||||||
* file_ioctl(filep, FIOC_MMAP, (unsigned long)((uintptr_t)&addr));
|
* mmap
|
||||||
* Code using this would be non-portable across architectures as the format
|
* Code using this would be non-portable across architectures as the format
|
||||||
* of the buffer can be different.
|
* of the buffer can be different.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ static const struct file_operations devnull_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
devnull_poll /* poll */
|
devnull_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ static const struct file_operations devzero_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
devzero_poll /* poll */
|
devzero_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -166,6 +166,7 @@ const struct file_operations g_rpmsgdev_ops =
|
|||||||
rpmsgdev_seek, /* seek */
|
rpmsgdev_seek, /* seek */
|
||||||
rpmsgdev_ioctl, /* ioctl */
|
rpmsgdev_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
rpmsgdev_poll /* poll */
|
rpmsgdev_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -78,6 +78,7 @@ static const struct file_operations g_alt1250fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
alt1250_ioctl, /* ioctl */
|
alt1250_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
alt1250_poll, /* poll */
|
alt1250_poll, /* poll */
|
||||||
};
|
};
|
||||||
static uint8_t g_recvbuff[ALTCOM_RX_PKT_SIZE_MAX];
|
static uint8_t g_recvbuff[ALTCOM_RX_PKT_SIZE_MAX];
|
||||||
|
|||||||
@@ -115,6 +115,7 @@ static const struct file_operations ubxmdm_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ubxmdm_ioctl, /* ioctl */
|
ubxmdm_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
ubxmdm_poll /* poll */
|
ubxmdm_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -120,6 +120,7 @@ static const struct file_operations mtdconfig_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
mtdconfig_ioctl, /* ioctl */
|
mtdconfig_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
mtdconfig_poll /* poll */
|
mtdconfig_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -142,6 +142,7 @@ static const struct file_operations g_mtdnvs_fops =
|
|||||||
NULL, /* Seek */
|
NULL, /* Seek */
|
||||||
mtdconfig_ioctl, /* Ioctl */
|
mtdconfig_ioctl, /* Ioctl */
|
||||||
NULL, /* Truncate */
|
NULL, /* Truncate */
|
||||||
|
NULL, /* Mmap */
|
||||||
mtdconfig_poll /* Poll */
|
mtdconfig_poll /* Poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* Unlink */
|
, NULL /* Unlink */
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ static const struct file_operations g_telnet_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
telnet_ioctl, /* ioctl */
|
telnet_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
telnet_poll /* poll */
|
telnet_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
@@ -206,6 +207,7 @@ static const struct file_operations g_factory_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
factory_ioctl, /* ioctl */
|
factory_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -220,6 +220,7 @@ static const struct file_operations g_tun_file_ops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
tun_ioctl, /* ioctl */
|
tun_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
tun_poll /* poll */
|
tun_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ static const struct file_operations g_fifo_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
pipecommon_ioctl, /* ioctl */
|
pipecommon_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
pipecommon_poll /* poll */
|
pipecommon_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, pipecommon_unlink /* unlink */
|
, pipecommon_unlink /* unlink */
|
||||||
|
|||||||
@@ -62,6 +62,7 @@ static const struct file_operations g_pipe_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
pipecommon_ioctl, /* ioctl */
|
pipecommon_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
pipecommon_poll /* poll */
|
pipecommon_poll /* poll */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -92,6 +92,7 @@ static const struct file_operations g_batteryops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
bat_charger_ioctl, /* ioctl */
|
bat_charger_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
bat_charger_poll /* poll */
|
bat_charger_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ static const struct file_operations g_batteryops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
bat_gauge_ioctl, /* ioctl */
|
bat_gauge_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
bat_gauge_poll /* poll */
|
bat_gauge_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -93,6 +93,7 @@ static const struct file_operations g_batteryops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
bat_monitor_ioctl, /* ioctl */
|
bat_monitor_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
bat_monitor_poll /* poll */
|
bat_monitor_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -104,6 +104,7 @@ static const struct file_operations g_lirc_fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
lirc_ioctl, /* ioctl */
|
lirc_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
lirc_poll /* poll */
|
lirc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
|||||||
@@ -117,6 +117,7 @@ static const struct file_operations g_aht10fops =
|
|||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
aht10_ioctl, /* ioctl */
|
aht10_ioctl, /* ioctl */
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
|
NULL, /* mmap */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, aht10_unlink /* unlink */
|
, aht10_unlink /* unlink */
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user