fs: Move mmap callback before truncate in [file|mountpt]_operations

since mmap may exist in block_operations, but truncate may not,
moving mmap beforee truncate could make three struct more compatible

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-01-03 01:06:12 +08:00 committed by Petro Karashchenko
parent c623ee20f1
commit b0a0ba3ad7
103 changed files with 105 additions and 106 deletions

View File

@ -106,8 +106,8 @@ static const struct file_operations g_geofencefops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
cxd56_geofence_ioctl, /* ioctl */ cxd56_geofence_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
cxd56_geofence_poll /* poll */ cxd56_geofence_poll /* poll */
}; };

View File

@ -317,8 +317,8 @@ static const struct file_operations g_gnssfops =
cxd56_gnss_write, /* write */ cxd56_gnss_write, /* write */
NULL, /* seek */ NULL, /* seek */
cxd56_gnss_ioctl, /* ioctl */ cxd56_gnss_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
cxd56_gnss_poll /* poll */ cxd56_gnss_poll /* poll */
}; };

View File

@ -145,8 +145,8 @@ static const struct file_operations g_hif_fops =
hif_write, /* write */ hif_write, /* write */
hif_seek, /* seek */ hif_seek, /* seek */
hif_ioctl, /* ioctl */ hif_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
hif_poll /* poll */ hif_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, hif_unlink /* unlink */ , hif_unlink /* unlink */

View File

@ -249,8 +249,8 @@ static const struct file_operations g_tsdops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
sam_tsd_ioctl, /* ioctl */ sam_tsd_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
sam_tsd_poll /* poll */ sam_tsd_poll /* poll */
}; };

View File

@ -296,8 +296,8 @@ static const struct file_operations g_slcdops =
slcd_write, /* write */ slcd_write, /* write */
NULL, /* seek */ NULL, /* seek */
slcd_ioctl, /* ioctl */ slcd_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
slcd_poll /* poll */ slcd_poll /* poll */
}; };

View File

@ -268,8 +268,8 @@ static const struct file_operations tc_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
tc_ioctl, /* ioctl */ tc_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
tc_poll /* poll */ tc_poll /* poll */
}; };

View File

@ -346,8 +346,8 @@ static const struct file_operations g_slcdops =
slcd_write, /* write */ slcd_write, /* write */
NULL, /* seek */ NULL, /* seek */
slcd_ioctl, /* ioctl */ slcd_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
slcd_poll /* poll */ slcd_poll /* poll */
}; };

View File

@ -249,8 +249,8 @@ static const struct file_operations tc_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
tc_ioctl, /* ioctl */ tc_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
tc_poll /* poll */ tc_poll /* poll */
}; };

View File

@ -181,8 +181,8 @@ static const struct file_operations g_lcdops =
lcd_write, /* write */ lcd_write, /* write */
NULL, /* seek */ NULL, /* seek */
lcd_ioctl, /* ioctl */ lcd_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
lcd_poll /* poll */ lcd_poll /* poll */
}; };

View File

@ -125,8 +125,8 @@ static const struct file_operations g_cryptofops =
cryptof_write, /* write */ cryptof_write, /* write */
NULL, /* seek */ NULL, /* seek */
cryptof_ioctl, /* ioctl */ cryptof_ioctl, /* ioctl */
NULL, /* mmap */
NULL, /* truncate */ NULL, /* truncate */
NULL, /* mmap */
cryptof_poll /* poll */ cryptof_poll /* poll */
}; };
@ -138,8 +138,8 @@ static const struct file_operations g_cryptoops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
cryptoioctl, /* ioctl */ cryptoioctl, /* ioctl */
NULL, /* mmap */
NULL, /* truncate */ NULL, /* truncate */
NULL, /* mmap */
NULL /* poll */ NULL /* poll */
}; };

View File

@ -72,8 +72,8 @@ static const struct file_operations g_adc_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
adc_ioctl, /* ioctl */ adc_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
adc_poll /* poll */ adc_poll /* poll */
}; };

View File

@ -65,8 +65,8 @@ static const struct file_operations comp_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
comp_ioctl, /* ioctl */ comp_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
comp_poll /* poll */ comp_poll /* poll */
}; };

View File

@ -78,8 +78,8 @@ const struct file_operations bch_fops =
bch_write, /* write */ bch_write, /* write */
bch_seek, /* seek */ bch_seek, /* seek */
bch_ioctl, /* ioctl */ bch_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
bch_poll /* poll */ bch_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, bch_unlink /* unlink */ , bch_unlink /* unlink */

View File

@ -135,8 +135,8 @@ static const struct file_operations g_canops =
can_write, /* write */ can_write, /* write */
NULL, /* seek */ NULL, /* seek */
can_ioctl, /* ioctl */ can_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
can_poll /* poll */ can_poll /* poll */
}; };

View File

@ -100,8 +100,8 @@ static const struct file_operations g_urand_fops =
devurand_write, /* write */ devurand_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
devurand_poll /* poll */ devurand_poll /* poll */
}; };

View File

@ -99,8 +99,8 @@ static const struct file_operations i2cdrvr_fops =
i2cdrvr_write, /* write */ i2cdrvr_write, /* write */
NULL, /* seek */ NULL, /* seek */
i2cdrvr_ioctl, /* ioctl */ i2cdrvr_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, i2cdrvr_unlink /* unlink */ , i2cdrvr_unlink /* unlink */

View File

@ -122,8 +122,8 @@ static const struct file_operations ads7843e_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
ads7843e_ioctl, /* ioctl */ ads7843e_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
ads7843e_poll /* poll */ ads7843e_poll /* poll */
}; };

View File

@ -135,8 +135,8 @@ static const struct file_operations ajoy_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
ajoy_ioctl, /* ioctl */ ajoy_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
ajoy_poll /* poll */ ajoy_poll /* poll */
}; };

View File

@ -133,8 +133,8 @@ static const struct file_operations btn_fops =
btn_write, /* write */ btn_write, /* write */
NULL, /* seek */ NULL, /* seek */
btn_ioctl, /* ioctl */ btn_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
btn_poll /* poll */ btn_poll /* poll */
}; };

View File

@ -224,8 +224,8 @@ static const struct file_operations g_mbr3108_fileops =
mbr3108_write, /* write */ mbr3108_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
mbr3108_poll /* poll */ mbr3108_poll /* poll */
}; };

View File

@ -135,8 +135,8 @@ static const struct file_operations djoy_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
djoy_ioctl, /* ioctl */ djoy_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
djoy_poll /* poll */ djoy_poll /* poll */
}; };

View File

@ -176,8 +176,8 @@ static const struct file_operations ft5x06_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
ft5x06_ioctl, /* ioctl */ ft5x06_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
ft5x06_poll /* poll */ ft5x06_poll /* poll */
}; };

View File

@ -88,8 +88,8 @@ static const struct file_operations g_keyboard_fops =
keyboard_write, /* write */ keyboard_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
keyboard_poll /* poll */ keyboard_poll /* poll */
}; };

View File

@ -115,8 +115,8 @@ static const struct file_operations max11802_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
max11802_ioctl, /* ioctl */ max11802_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
max11802_poll /* poll */ max11802_poll /* poll */
}; };

View File

@ -280,8 +280,8 @@ static const struct file_operations mxt_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
mxt_ioctl, /* ioctl */ mxt_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
mxt_poll /* poll */ mxt_poll /* poll */
}; };

View File

@ -255,8 +255,8 @@ static const struct file_operations g_hidkbd_fops =
spq10kbd_write, /* write */ spq10kbd_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
spq10kbd_poll /* poll */ spq10kbd_poll /* poll */
}; };

View File

@ -124,8 +124,8 @@ static const struct file_operations g_stmpe811fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
stmpe811_ioctl, /* ioctl */ stmpe811_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
stmpe811_poll /* poll */ stmpe811_poll /* poll */
}; };

View File

@ -90,8 +90,8 @@ static const struct file_operations g_touch_fops =
touch_write, /* write */ touch_write, /* write */
NULL, /* seek */ NULL, /* seek */
touch_ioctl, /* ioctl */ touch_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
touch_poll /* poll */ touch_poll /* poll */
}; };

View File

@ -209,8 +209,8 @@ static const struct file_operations tsc2007_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
tsc2007_ioctl, /* ioctl */ tsc2007_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
tsc2007_poll /* poll */ tsc2007_poll /* poll */
}; };

View File

@ -134,8 +134,8 @@ static const struct file_operations g_ft80x_fops =
ft80x_write, /* write */ ft80x_write, /* write */
NULL, /* seek */ NULL, /* seek */
ft80x_ioctl, /* ioctl */ ft80x_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, ft80x_unlink /* unlink */ , ft80x_unlink /* unlink */

View File

@ -117,8 +117,8 @@ static const struct file_operations g_pcf8574_lcd_fops =
pcf8574_lcd_write, /* write */ pcf8574_lcd_write, /* write */
pcf8574_lcd_seek, /* seek */ pcf8574_lcd_seek, /* seek */
pcf8574_lcd_ioctl, /* ioctl */ pcf8574_lcd_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
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 */

View File

@ -170,8 +170,8 @@ static const struct file_operations tda19988_fops =
tda19988_write, /* write */ tda19988_write, /* write */
tda19988_seek, /* seek */ tda19988_seek, /* seek */
tda19988_ioctl, /* ioctl */ tda19988_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
tda19988_poll /* poll */ tda19988_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, tda19988_unlink /* unlink */ , tda19988_unlink /* unlink */

View File

@ -57,8 +57,8 @@ static const struct file_operations devnull_fops =
devnull_write, /* write */ devnull_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
devnull_poll /* poll */ devnull_poll /* poll */
}; };

View File

@ -57,8 +57,8 @@ static const struct file_operations devzero_fops =
devzero_write, /* write */ devzero_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
devzero_poll /* poll */ devzero_poll /* poll */
}; };

View File

@ -165,8 +165,8 @@ const struct file_operations g_rpmsgdev_ops =
rpmsgdev_write, /* write */ rpmsgdev_write, /* write */
rpmsgdev_seek, /* seek */ rpmsgdev_seek, /* seek */
rpmsgdev_ioctl, /* ioctl */ rpmsgdev_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
rpmsgdev_poll /* poll */ rpmsgdev_poll /* poll */
}; };

View File

@ -77,8 +77,8 @@ static const struct file_operations g_alt1250fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
alt1250_ioctl, /* ioctl */ alt1250_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
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];

View File

@ -114,8 +114,8 @@ static const struct file_operations ubxmdm_fops =
ubxmdm_write, /* write */ ubxmdm_write, /* write */
NULL, /* seek */ NULL, /* seek */
ubxmdm_ioctl, /* ioctl */ ubxmdm_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
ubxmdm_poll /* poll */ ubxmdm_poll /* poll */
}; };

View File

@ -119,8 +119,8 @@ static const struct file_operations mtdconfig_fops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
mtdconfig_ioctl, /* ioctl */ mtdconfig_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
mtdconfig_poll /* poll */ mtdconfig_poll /* poll */
}; };

View File

@ -190,8 +190,8 @@ static const struct file_operations g_telnet_fops =
telnet_write, /* write */ telnet_write, /* write */
NULL, /* seek */ NULL, /* seek */
telnet_ioctl, /* ioctl */ telnet_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
telnet_poll /* poll */ telnet_poll /* poll */
}; };

View File

@ -219,8 +219,8 @@ static const struct file_operations g_tun_file_ops =
tun_write, /* write */ tun_write, /* write */
NULL, /* seek */ NULL, /* seek */
tun_ioctl, /* ioctl */ tun_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
tun_poll /* poll */ tun_poll /* poll */
}; };

View File

@ -47,8 +47,8 @@ static const struct file_operations g_fifo_fops =
pipecommon_write, /* write */ pipecommon_write, /* write */
NULL, /* seek */ NULL, /* seek */
pipecommon_ioctl, /* ioctl */ pipecommon_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
pipecommon_poll /* poll */ pipecommon_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, pipecommon_unlink /* unlink */ , pipecommon_unlink /* unlink */

View File

@ -61,8 +61,8 @@ static const struct file_operations g_pipe_fops =
pipecommon_write, /* write */ pipecommon_write, /* write */
NULL, /* seek */ NULL, /* seek */
pipecommon_ioctl, /* ioctl */ pipecommon_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
pipecommon_poll /* poll */ pipecommon_poll /* poll */
}; };

View File

@ -91,8 +91,8 @@ static const struct file_operations g_batteryops =
bat_charger_write, /* write */ bat_charger_write, /* write */
NULL, /* seek */ NULL, /* seek */
bat_charger_ioctl, /* ioctl */ bat_charger_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
bat_charger_poll /* poll */ bat_charger_poll /* poll */
}; };

View File

@ -93,8 +93,8 @@ static const struct file_operations g_batteryops =
bat_gauge_write, /* write */ bat_gauge_write, /* write */
NULL, /* seek */ NULL, /* seek */
bat_gauge_ioctl, /* ioctl */ bat_gauge_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
bat_gauge_poll /* poll */ bat_gauge_poll /* poll */
}; };

View File

@ -92,8 +92,8 @@ static const struct file_operations g_batteryops =
bat_monitor_write, /* write */ bat_monitor_write, /* write */
NULL, /* seek */ NULL, /* seek */
bat_monitor_ioctl, /* ioctl */ bat_monitor_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
bat_monitor_poll /* poll */ bat_monitor_poll /* poll */
}; };

View File

@ -103,8 +103,8 @@ static const struct file_operations g_lirc_fops =
lirc_write, /* write */ lirc_write, /* write */
NULL, /* seek */ NULL, /* seek */
lirc_ioctl, /* ioctl */ lirc_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
lirc_poll /* poll */ lirc_poll /* poll */
}; };

View File

@ -116,8 +116,8 @@ static const struct file_operations g_aht10fops =
aht10_write, /* write */ aht10_write, /* write */
NULL, /* seek */ NULL, /* seek */
aht10_ioctl, /* ioctl */ aht10_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, aht10_unlink /* unlink */ , aht10_unlink /* unlink */

View File

@ -90,8 +90,8 @@ static const struct file_operations g_hcsr04ops =
hcsr04_write, /* write */ hcsr04_write, /* write */
NULL, /* seek */ NULL, /* seek */
hcsr04_ioctl, /* ioctl */ hcsr04_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
hcsr04_poll /* poll */ hcsr04_poll /* poll */
}; };

View File

@ -161,8 +161,8 @@ static const struct file_operations g_hdc1008fops =
hdc1008_write, /* write */ hdc1008_write, /* write */
NULL, /* seek */ NULL, /* seek */
hdc1008_ioctl, /* ioctl */ hdc1008_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, hdc1008_unlink /* unlink */ , hdc1008_unlink /* unlink */

View File

@ -157,8 +157,8 @@ static const struct file_operations g_humidityops =
hts221_write, /* write */ hts221_write, /* write */
NULL, /* seek */ NULL, /* seek */
hts221_ioctl, /* ioctl */ hts221_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
hts221_poll /* poll */ hts221_poll /* poll */
}; };

View File

@ -154,8 +154,8 @@ static const struct file_operations g_lis2dhops =
lis2dh_write, /* write */ lis2dh_write, /* write */
NULL, /* seek */ NULL, /* seek */
lis2dh_ioctl, /* ioctl */ lis2dh_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
lis2dh_poll /* poll */ lis2dh_poll /* poll */
}; };

View File

@ -112,8 +112,8 @@ static const struct file_operations g_alsops =
max44009_write, /* write */ max44009_write, /* write */
NULL, /* seek */ NULL, /* seek */
max44009_ioctl, /* ioctl */ max44009_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
max44009_poll /* poll */ max44009_poll /* poll */
}; };

View File

@ -182,8 +182,8 @@ static const struct file_operations g_scd30fops =
scd30_write, /* write */ scd30_write, /* write */
NULL, /* seek */ NULL, /* seek */
scd30_ioctl, /* ioctl */ scd30_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, scd30_unlink /* unlink */ , scd30_unlink /* unlink */

View File

@ -190,8 +190,8 @@ static const struct file_operations g_scd41fops =
scd41_write, /* write */ scd41_write, /* write */
NULL, /* seek */ NULL, /* seek */
scd41_ioctl, /* ioctl */ scd41_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, scd41_unlink /* unlink */ , scd41_unlink /* unlink */

View File

@ -167,8 +167,8 @@ static const struct file_operations g_sensor_fops =
sensor_write, /* write */ sensor_write, /* write */
NULL, /* seek */ NULL, /* seek */
sensor_ioctl, /* ioctl */ sensor_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
sensor_poll /* poll */ sensor_poll /* poll */
}; };

View File

@ -159,8 +159,8 @@ static const struct file_operations g_sgp30fops =
sgp30_write, /* write */ sgp30_write, /* write */
NULL, /* seek */ NULL, /* seek */
sgp30_ioctl, /* ioctl */ sgp30_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, sgp30_unlink /* unlink */ , sgp30_unlink /* unlink */

View File

@ -131,8 +131,8 @@ static const struct file_operations g_sht21fops =
sht21_write, /* write */ sht21_write, /* write */
NULL, /* seek */ NULL, /* seek */
sht21_ioctl, /* ioctl */ sht21_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, sht21_unlink /* unlink */ , sht21_unlink /* unlink */

View File

@ -170,8 +170,8 @@ static const struct file_operations g_sht3xfops =
sht3x_write, /* write */ sht3x_write, /* write */
NULL, /* seek */ NULL, /* seek */
sht3x_ioctl, /* ioctl */ sht3x_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, sht3x_unlink /* unlink */ , sht3x_unlink /* unlink */

View File

@ -175,8 +175,8 @@ static const struct file_operations g_sps30fops =
sps30_write, /* write */ sps30_write, /* write */
NULL, /* seek */ NULL, /* seek */
sps30_ioctl, /* ioctl */ sps30_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, sps30_unlink /* unlink */ , sps30_unlink /* unlink */

View File

@ -81,8 +81,8 @@ static const struct file_operations g_usensor_fops =
usensor_write, /* write */ usensor_write, /* write */
NULL, /* seek */ NULL, /* seek */
usensor_ioctl, /* ioctl */ usensor_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL, /* poll */ NULL, /* poll */
}; };

View File

@ -127,8 +127,8 @@ static const struct file_operations g_pty_fops =
pty_write, /* write */ pty_write, /* write */
NULL, /* seek */ NULL, /* seek */
pty_ioctl, /* ioctl */ pty_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
pty_poll /* poll */ pty_poll /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, pty_unlink /* unlink */ , pty_unlink /* unlink */

View File

@ -126,8 +126,8 @@ static const struct file_operations g_serialops =
uart_write, /* write */ uart_write, /* write */
NULL, /* seek */ NULL, /* seek */
uart_ioctl, /* ioctl */ uart_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
uart_poll /* poll */ uart_poll /* poll */
}; };

View File

@ -90,8 +90,8 @@ static const struct file_operations g_uart_bth4_ops =
uart_bth4_write, /* write */ uart_bth4_write, /* write */
NULL, /* seek */ NULL, /* seek */
uart_bth4_ioctl, /* ioctl */ uart_bth4_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
uart_bth4_poll /* poll */ uart_bth4_poll /* poll */
}; };

View File

@ -99,8 +99,8 @@ static const struct file_operations spidrvr_fops =
spidrvr_write, /* write */ spidrvr_write, /* write */
NULL, /* seek */ NULL, /* seek */
spidrvr_ioctl, /* ioctl */ spidrvr_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, spidrvr_unlink /* unlink */ , spidrvr_unlink /* unlink */

View File

@ -127,8 +127,8 @@ static const struct file_operations g_spislavefops =
spi_slave_write, /* write */ spi_slave_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, spi_slave_unlink /* unlink */ , spi_slave_unlink /* unlink */

View File

@ -114,8 +114,8 @@ static const struct file_operations g_ramlogfops =
ramlog_file_write, /* write */ ramlog_file_write, /* write */
NULL, /* seek */ NULL, /* seek */
ramlog_file_ioctl, /* ioctl */ ramlog_file_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
ramlog_file_poll /* poll */ ramlog_file_poll /* poll */
}; };

View File

@ -129,8 +129,8 @@ static const struct file_operations rtc_fops =
rtc_write, /* write */ rtc_write, /* write */
NULL, /* seek */ NULL, /* seek */
rtc_ioctl, /* ioctl */ rtc_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL /* poll */ NULL /* poll */
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS #ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
, rtc_unlink /* unlink */ , rtc_unlink /* unlink */

View File

@ -254,8 +254,8 @@ static const struct file_operations g_adb_fops =
adb_char_write, /* write */ adb_char_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
adb_char_poll /* poll */ adb_char_poll /* poll */
}; };

View File

@ -347,8 +347,8 @@ static const struct file_operations cdcwdm_fops =
cdcwdm_write, /* write */ cdcwdm_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
cdcwdm_poll /* poll */ cdcwdm_poll /* poll */
}; };

View File

@ -341,8 +341,8 @@ static const struct file_operations g_hidkbd_fops =
usbhost_write, /* write */ usbhost_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
usbhost_poll /* poll */ usbhost_poll /* poll */
}; };

View File

@ -391,8 +391,8 @@ static const struct file_operations g_hidmouse_fops =
usbhost_write, /* write */ usbhost_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
usbhost_poll /* poll */ usbhost_poll /* poll */
}; };

View File

@ -296,8 +296,8 @@ static const struct file_operations g_xboxcontroller_fops =
usbhost_write, /* write */ usbhost_write, /* write */
NULL, /* seek */ NULL, /* seek */
usbhost_ioctl, /* ioctl */ usbhost_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
usbhost_poll /* poll */ usbhost_poll /* poll */
}; };

View File

@ -94,8 +94,8 @@ static const struct file_operations g_fusb301ops =
fusb301_write, /* write */ fusb301_write, /* write */
NULL, /* seek */ NULL, /* seek */
fusb301_ioctl, /* ioctl */ fusb301_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
fusb301_poll /* poll */ fusb301_poll /* poll */
}; };

View File

@ -128,8 +128,8 @@ static const struct file_operations g_fusb303ops =
fusb303_write, /* write */ fusb303_write, /* write */
NULL, /* seek */ NULL, /* seek */
fusb303_ioctl, /* ioctl */ fusb303_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
fusb303_poll /* poll */ fusb303_poll /* poll */
}; };

View File

@ -103,8 +103,8 @@ static const struct file_operations g_usrsockdevops =
usrsockdev_write, /* write */ usrsockdev_write, /* write */
usrsockdev_seek, /* seek */ usrsockdev_seek, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
usrsockdev_poll /* poll */ usrsockdev_poll /* poll */
}; };

View File

@ -88,8 +88,8 @@ static const struct file_operations fb_fops =
fb_write, /* write */ fb_write, /* write */
fb_seek, /* seek */ fb_seek, /* seek */
fb_ioctl, /* ioctl */ fb_ioctl, /* ioctl */
NULL, /* truncate */
fb_mmap, /* mmap */ fb_mmap, /* mmap */
NULL, /* truncate */
fb_poll /* poll */ fb_poll /* poll */
}; };

View File

@ -287,7 +287,6 @@ static const struct file_operations g_video_fops =
video_write, /* write */ video_write, /* write */
NULL, /* seek */ NULL, /* seek */
video_ioctl, /* ioctl */ video_ioctl, /* ioctl */
NULL, /* truncate */
video_mmap, /* mmap */ video_mmap, /* mmap */
}; };

View File

@ -305,8 +305,8 @@ static const struct file_operations g_cc1101ops =
cc1101_file_write, /* write */ cc1101_file_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
cc1101_file_poll /* poll */ cc1101_file_poll /* poll */
}; };

View File

@ -231,8 +231,8 @@ static const struct file_operations g_gs2200m_fops =
gs2200m_write, /* write */ gs2200m_write, /* write */
NULL, /* seek */ NULL, /* seek */
gs2200m_ioctl, /* ioctl */ gs2200m_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
gs2200m_poll /* poll */ gs2200m_poll /* poll */
}; };

View File

@ -451,8 +451,8 @@ static const struct file_operations sx127x_fops =
sx127x_write, /* write */ sx127x_write, /* write */
NULL, /* seek */ NULL, /* seek */
sx127x_ioctl, /* ioctl */ sx127x_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
sx127x_poll /* poll */ sx127x_poll /* poll */
}; };

View File

@ -239,8 +239,8 @@ static const struct file_operations nrf24l01_fops =
nrf24l01_write, /* write */ nrf24l01_write, /* write */
NULL, /* seek */ NULL, /* seek */
nrf24l01_ioctl, /* ioctl */ nrf24l01_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
nrf24l01_poll /* poll */ nrf24l01_poll /* poll */
}; };

View File

@ -109,8 +109,8 @@ const struct mountpt_operations binfs_operations =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
binfs_ioctl, /* ioctl */ binfs_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL, /* sync */ NULL, /* sync */
binfs_dup, /* dup */ binfs_dup, /* dup */

View File

@ -184,8 +184,8 @@ const struct mountpt_operations cromfs_operations =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
cromfs_ioctl, /* ioctl */ cromfs_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL, /* sync */ NULL, /* sync */
cromfs_dup, /* dup */ cromfs_dup, /* dup */

View File

@ -115,8 +115,8 @@ const struct mountpt_operations fat_operations =
fat_write, /* write */ fat_write, /* write */
fat_seek, /* seek */ fat_seek, /* seek */
fat_ioctl, /* ioctl */ fat_ioctl, /* ioctl */
fat_truncate, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
fat_truncate, /* truncate */
fat_sync, /* sync */ fat_sync, /* sync */
fat_dup, /* dup */ fat_dup, /* dup */
fat_fstat, /* fstat */ fat_fstat, /* fstat */

View File

@ -142,8 +142,8 @@ const struct mountpt_operations hostfs_operations =
hostfs_write, /* write */ hostfs_write, /* write */
hostfs_seek, /* seek */ hostfs_seek, /* seek */
hostfs_ioctl, /* ioctl */ hostfs_ioctl, /* ioctl */
hostfs_ftruncate, /* ftruncate */
NULL, /* mmap */ NULL, /* mmap */
hostfs_ftruncate, /* ftruncate */
hostfs_sync, /* sync */ hostfs_sync, /* sync */
hostfs_dup, /* dup */ hostfs_dup, /* dup */

View File

@ -140,8 +140,8 @@ const struct mountpt_operations littlefs_operations =
littlefs_write, /* write */ littlefs_write, /* write */
littlefs_seek, /* seek */ littlefs_seek, /* seek */
littlefs_ioctl, /* ioctl */ littlefs_ioctl, /* ioctl */
littlefs_truncate, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
littlefs_truncate, /* truncate */
littlefs_sync, /* sync */ littlefs_sync, /* sync */
littlefs_dup, /* dup */ littlefs_dup, /* dup */

View File

@ -60,8 +60,8 @@ static const struct file_operations g_nxmq_fileops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
nxmq_file_poll /* poll */ nxmq_file_poll /* poll */
}; };

View File

@ -198,8 +198,8 @@ const struct mountpt_operations nfs_operations =
nfs_write, /* write */ nfs_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
nfs_truncate, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
nfs_truncate, /* truncate */
NULL, /* sync */ NULL, /* sync */
nfs_dup, /* dup */ nfs_dup, /* dup */

View File

@ -54,12 +54,12 @@ const struct mountpt_operations nxffs_operations =
nxffs_write, /* write */ nxffs_write, /* write */
NULL, /* seek -- Use f_pos in struct file */ NULL, /* seek -- Use f_pos in struct file */
nxffs_ioctl, /* ioctl */ nxffs_ioctl, /* ioctl */
NULL, /* mmap */
#ifdef __NO_TRUNCATE_SUPPORT__ #ifdef __NO_TRUNCATE_SUPPORT__
nxffs_truncate, /* truncate */ nxffs_truncate, /* truncate */
#else #else
NULL, /* truncate */ NULL, /* truncate */
#endif #endif
NULL, /* mmap */
NULL, /* sync -- No buffered data */ NULL, /* sync -- No buffered data */
nxffs_dup, /* dup */ nxffs_dup, /* dup */

View File

@ -252,8 +252,8 @@ const struct mountpt_operations procfs_operations =
procfs_write, /* write */ procfs_write, /* write */
NULL, /* seek */ NULL, /* seek */
procfs_ioctl, /* ioctl */ procfs_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
NULL, /* sync */ NULL, /* sync */
procfs_dup, /* dup */ procfs_dup, /* dup */

View File

@ -121,8 +121,8 @@ const struct mountpt_operations romfs_operations =
NULL, /* write */ NULL, /* write */
romfs_seek, /* seek */ romfs_seek, /* seek */
romfs_ioctl, /* ioctl */ romfs_ioctl, /* ioctl */
NULL, /* truncate */
romfs_mmap, /* mmap */ romfs_mmap, /* mmap */
NULL, /* truncate */
NULL, /* sync */ NULL, /* sync */
romfs_dup, /* dup */ romfs_dup, /* dup */

View File

@ -161,8 +161,8 @@ const struct mountpt_operations rpmsgfs_operations =
rpmsgfs_write, /* write */ rpmsgfs_write, /* write */
rpmsgfs_seek, /* seek */ rpmsgfs_seek, /* seek */
rpmsgfs_ioctl, /* ioctl */ rpmsgfs_ioctl, /* ioctl */
rpmsgfs_ftruncate, /* ftruncate */
NULL, /* mmap */ NULL, /* mmap */
rpmsgfs_ftruncate, /* ftruncate */
rpmsgfs_sync, /* sync */ rpmsgfs_sync, /* sync */
rpmsgfs_dup, /* dup */ rpmsgfs_dup, /* dup */

View File

@ -140,8 +140,8 @@ const struct mountpt_operations smartfs_operations =
smartfs_write, /* write */ smartfs_write, /* write */
smartfs_seek, /* seek */ smartfs_seek, /* seek */
smartfs_ioctl, /* ioctl */ smartfs_ioctl, /* ioctl */
smartfs_truncate, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
smartfs_truncate, /* truncate */
smartfs_sync, /* sync */ smartfs_sync, /* sync */
smartfs_dup, /* dup */ smartfs_dup, /* dup */

View File

@ -64,8 +64,8 @@ static const struct file_operations g_sock_fileops =
sock_file_write, /* write */ sock_file_write, /* write */
NULL, /* seek */ NULL, /* seek */
sock_file_ioctl, /* ioctl */ sock_file_ioctl, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
sock_file_poll /* poll */ sock_file_poll /* poll */
}; };

View File

@ -141,8 +141,8 @@ const struct mountpt_operations spiffs_operations =
spiffs_write, /* write */ spiffs_write, /* write */
spiffs_seek, /* seek */ spiffs_seek, /* seek */
spiffs_ioctl, /* ioctl */ spiffs_ioctl, /* ioctl */
spiffs_truncate, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
spiffs_truncate, /* truncate */
spiffs_sync, /* sync */ spiffs_sync, /* sync */
spiffs_dup, /* dup */ spiffs_dup, /* dup */

View File

@ -178,8 +178,8 @@ const struct mountpt_operations tmpfs_operations =
tmpfs_write, /* write */ tmpfs_write, /* write */
tmpfs_seek, /* seek */ tmpfs_seek, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
tmpfs_truncate, /* truncate */
tmpfs_mmap, /* mmap */ tmpfs_mmap, /* mmap */
tmpfs_truncate, /* truncate */
tmpfs_sync, /* sync */ tmpfs_sync, /* sync */
tmpfs_dup, /* dup */ tmpfs_dup, /* dup */

View File

@ -222,8 +222,8 @@ const struct mountpt_operations unionfs_operations =
unionfs_write, /* write */ unionfs_write, /* write */
unionfs_seek, /* seek */ unionfs_seek, /* seek */
unionfs_ioctl, /* ioctl */ unionfs_ioctl, /* ioctl */
unionfs_truncate, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
unionfs_truncate, /* truncate */
unionfs_sync, /* sync */ unionfs_sync, /* sync */
unionfs_dup, /* dup */ unionfs_dup, /* dup */

View File

@ -160,8 +160,8 @@ const struct mountpt_operations userfs_operations =
userfs_write, /* write */ userfs_write, /* write */
userfs_seek, /* seek */ userfs_seek, /* seek */
userfs_ioctl, /* ioctl */ userfs_ioctl, /* ioctl */
userfs_truncate, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
userfs_truncate, /* truncate */
userfs_sync, /* sync */ userfs_sync, /* sync */
userfs_dup, /* dup */ userfs_dup, /* dup */

View File

@ -104,8 +104,8 @@ static const struct file_operations g_epoll_ops =
NULL, /* write */ NULL, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
epoll_do_poll /* poll */ epoll_do_poll /* poll */
}; };

View File

@ -100,8 +100,8 @@ static const struct file_operations g_eventfd_fops =
eventfd_do_write, /* write */ eventfd_do_write, /* write */
NULL, /* seek */ NULL, /* seek */
NULL, /* ioctl */ NULL, /* ioctl */
NULL, /* truncate */
NULL, /* mmap */ NULL, /* mmap */
NULL, /* truncate */
#ifdef CONFIG_EVENT_FD_POLL #ifdef CONFIG_EVENT_FD_POLL
eventfd_do_poll /* poll */ eventfd_do_poll /* poll */
#endif #endif

Some files were not shown because too many files have changed in this diff Show More