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:
parent
c623ee20f1
commit
b0a0ba3ad7
@ -106,8 +106,8 @@ static const struct file_operations g_geofencefops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
cxd56_geofence_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
cxd56_geofence_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -317,8 +317,8 @@ static const struct file_operations g_gnssfops =
|
||||
cxd56_gnss_write, /* write */
|
||||
NULL, /* seek */
|
||||
cxd56_gnss_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
cxd56_gnss_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -145,8 +145,8 @@ static const struct file_operations g_hif_fops =
|
||||
hif_write, /* write */
|
||||
hif_seek, /* seek */
|
||||
hif_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
hif_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, hif_unlink /* unlink */
|
||||
|
@ -249,8 +249,8 @@ static const struct file_operations g_tsdops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
sam_tsd_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
sam_tsd_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -296,8 +296,8 @@ static const struct file_operations g_slcdops =
|
||||
slcd_write, /* write */
|
||||
NULL, /* seek */
|
||||
slcd_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
slcd_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -268,8 +268,8 @@ static const struct file_operations tc_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
tc_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
tc_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -346,8 +346,8 @@ static const struct file_operations g_slcdops =
|
||||
slcd_write, /* write */
|
||||
NULL, /* seek */
|
||||
slcd_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
slcd_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -249,8 +249,8 @@ static const struct file_operations tc_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
tc_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
tc_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -181,8 +181,8 @@ static const struct file_operations g_lcdops =
|
||||
lcd_write, /* write */
|
||||
NULL, /* seek */
|
||||
lcd_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
lcd_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -125,8 +125,8 @@ static const struct file_operations g_cryptofops =
|
||||
cryptof_write, /* write */
|
||||
NULL, /* seek */
|
||||
cryptof_ioctl, /* ioctl */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
cryptof_poll /* poll */
|
||||
};
|
||||
|
||||
@ -138,8 +138,8 @@ static const struct file_operations g_cryptoops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
cryptoioctl, /* ioctl */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL /* poll */
|
||||
};
|
||||
|
||||
|
@ -72,8 +72,8 @@ static const struct file_operations g_adc_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
adc_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
adc_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -65,8 +65,8 @@ static const struct file_operations comp_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
comp_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
comp_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -78,8 +78,8 @@ const struct file_operations bch_fops =
|
||||
bch_write, /* write */
|
||||
bch_seek, /* seek */
|
||||
bch_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
bch_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, bch_unlink /* unlink */
|
||||
|
@ -135,8 +135,8 @@ static const struct file_operations g_canops =
|
||||
can_write, /* write */
|
||||
NULL, /* seek */
|
||||
can_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
can_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -100,8 +100,8 @@ static const struct file_operations g_urand_fops =
|
||||
devurand_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
devurand_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -99,8 +99,8 @@ static const struct file_operations i2cdrvr_fops =
|
||||
i2cdrvr_write, /* write */
|
||||
NULL, /* seek */
|
||||
i2cdrvr_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, i2cdrvr_unlink /* unlink */
|
||||
|
@ -122,8 +122,8 @@ static const struct file_operations ads7843e_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
ads7843e_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
ads7843e_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -135,8 +135,8 @@ static const struct file_operations ajoy_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
ajoy_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
ajoy_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -133,8 +133,8 @@ static const struct file_operations btn_fops =
|
||||
btn_write, /* write */
|
||||
NULL, /* seek */
|
||||
btn_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
btn_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -224,8 +224,8 @@ static const struct file_operations g_mbr3108_fileops =
|
||||
mbr3108_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
mbr3108_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -135,8 +135,8 @@ static const struct file_operations djoy_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
djoy_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
djoy_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -176,8 +176,8 @@ static const struct file_operations ft5x06_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
ft5x06_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
ft5x06_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -88,8 +88,8 @@ static const struct file_operations g_keyboard_fops =
|
||||
keyboard_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
keyboard_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -115,8 +115,8 @@ static const struct file_operations max11802_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
max11802_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
max11802_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -280,8 +280,8 @@ static const struct file_operations mxt_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
mxt_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
mxt_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -255,8 +255,8 @@ static const struct file_operations g_hidkbd_fops =
|
||||
spq10kbd_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
spq10kbd_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -124,8 +124,8 @@ static const struct file_operations g_stmpe811fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
stmpe811_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
stmpe811_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -90,8 +90,8 @@ static const struct file_operations g_touch_fops =
|
||||
touch_write, /* write */
|
||||
NULL, /* seek */
|
||||
touch_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
touch_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -209,8 +209,8 @@ static const struct file_operations tsc2007_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
tsc2007_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
tsc2007_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -134,8 +134,8 @@ static const struct file_operations g_ft80x_fops =
|
||||
ft80x_write, /* write */
|
||||
NULL, /* seek */
|
||||
ft80x_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, ft80x_unlink /* unlink */
|
||||
|
@ -117,8 +117,8 @@ static const struct file_operations g_pcf8574_lcd_fops =
|
||||
pcf8574_lcd_write, /* write */
|
||||
pcf8574_lcd_seek, /* seek */
|
||||
pcf8574_lcd_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
pcf8574_lcd_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, pcf8574_lcd_unlink /* unlink */
|
||||
|
@ -170,8 +170,8 @@ static const struct file_operations tda19988_fops =
|
||||
tda19988_write, /* write */
|
||||
tda19988_seek, /* seek */
|
||||
tda19988_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
tda19988_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, tda19988_unlink /* unlink */
|
||||
|
@ -57,8 +57,8 @@ static const struct file_operations devnull_fops =
|
||||
devnull_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
devnull_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -57,8 +57,8 @@ static const struct file_operations devzero_fops =
|
||||
devzero_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
devzero_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -165,8 +165,8 @@ const struct file_operations g_rpmsgdev_ops =
|
||||
rpmsgdev_write, /* write */
|
||||
rpmsgdev_seek, /* seek */
|
||||
rpmsgdev_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
rpmsgdev_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -77,8 +77,8 @@ static const struct file_operations g_alt1250fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
alt1250_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
alt1250_poll, /* poll */
|
||||
};
|
||||
static uint8_t g_recvbuff[ALTCOM_RX_PKT_SIZE_MAX];
|
||||
|
@ -114,8 +114,8 @@ static const struct file_operations ubxmdm_fops =
|
||||
ubxmdm_write, /* write */
|
||||
NULL, /* seek */
|
||||
ubxmdm_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
ubxmdm_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -119,8 +119,8 @@ static const struct file_operations mtdconfig_fops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
mtdconfig_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
mtdconfig_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -190,8 +190,8 @@ static const struct file_operations g_telnet_fops =
|
||||
telnet_write, /* write */
|
||||
NULL, /* seek */
|
||||
telnet_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
telnet_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -219,8 +219,8 @@ static const struct file_operations g_tun_file_ops =
|
||||
tun_write, /* write */
|
||||
NULL, /* seek */
|
||||
tun_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
tun_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -47,8 +47,8 @@ static const struct file_operations g_fifo_fops =
|
||||
pipecommon_write, /* write */
|
||||
NULL, /* seek */
|
||||
pipecommon_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
pipecommon_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, pipecommon_unlink /* unlink */
|
||||
|
@ -61,8 +61,8 @@ static const struct file_operations g_pipe_fops =
|
||||
pipecommon_write, /* write */
|
||||
NULL, /* seek */
|
||||
pipecommon_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
pipecommon_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -91,8 +91,8 @@ static const struct file_operations g_batteryops =
|
||||
bat_charger_write, /* write */
|
||||
NULL, /* seek */
|
||||
bat_charger_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
bat_charger_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -93,8 +93,8 @@ static const struct file_operations g_batteryops =
|
||||
bat_gauge_write, /* write */
|
||||
NULL, /* seek */
|
||||
bat_gauge_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
bat_gauge_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -92,8 +92,8 @@ static const struct file_operations g_batteryops =
|
||||
bat_monitor_write, /* write */
|
||||
NULL, /* seek */
|
||||
bat_monitor_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
bat_monitor_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -103,8 +103,8 @@ static const struct file_operations g_lirc_fops =
|
||||
lirc_write, /* write */
|
||||
NULL, /* seek */
|
||||
lirc_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
lirc_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -116,8 +116,8 @@ static const struct file_operations g_aht10fops =
|
||||
aht10_write, /* write */
|
||||
NULL, /* seek */
|
||||
aht10_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, aht10_unlink /* unlink */
|
||||
|
@ -90,8 +90,8 @@ static const struct file_operations g_hcsr04ops =
|
||||
hcsr04_write, /* write */
|
||||
NULL, /* seek */
|
||||
hcsr04_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
hcsr04_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -161,8 +161,8 @@ static const struct file_operations g_hdc1008fops =
|
||||
hdc1008_write, /* write */
|
||||
NULL, /* seek */
|
||||
hdc1008_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, hdc1008_unlink /* unlink */
|
||||
|
@ -157,8 +157,8 @@ static const struct file_operations g_humidityops =
|
||||
hts221_write, /* write */
|
||||
NULL, /* seek */
|
||||
hts221_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
hts221_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -154,8 +154,8 @@ static const struct file_operations g_lis2dhops =
|
||||
lis2dh_write, /* write */
|
||||
NULL, /* seek */
|
||||
lis2dh_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
lis2dh_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -112,8 +112,8 @@ static const struct file_operations g_alsops =
|
||||
max44009_write, /* write */
|
||||
NULL, /* seek */
|
||||
max44009_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
max44009_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -182,8 +182,8 @@ static const struct file_operations g_scd30fops =
|
||||
scd30_write, /* write */
|
||||
NULL, /* seek */
|
||||
scd30_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, scd30_unlink /* unlink */
|
||||
|
@ -190,8 +190,8 @@ static const struct file_operations g_scd41fops =
|
||||
scd41_write, /* write */
|
||||
NULL, /* seek */
|
||||
scd41_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, scd41_unlink /* unlink */
|
||||
|
@ -167,8 +167,8 @@ static const struct file_operations g_sensor_fops =
|
||||
sensor_write, /* write */
|
||||
NULL, /* seek */
|
||||
sensor_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
sensor_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -159,8 +159,8 @@ static const struct file_operations g_sgp30fops =
|
||||
sgp30_write, /* write */
|
||||
NULL, /* seek */
|
||||
sgp30_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, sgp30_unlink /* unlink */
|
||||
|
@ -131,8 +131,8 @@ static const struct file_operations g_sht21fops =
|
||||
sht21_write, /* write */
|
||||
NULL, /* seek */
|
||||
sht21_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, sht21_unlink /* unlink */
|
||||
|
@ -170,8 +170,8 @@ static const struct file_operations g_sht3xfops =
|
||||
sht3x_write, /* write */
|
||||
NULL, /* seek */
|
||||
sht3x_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, sht3x_unlink /* unlink */
|
||||
|
@ -175,8 +175,8 @@ static const struct file_operations g_sps30fops =
|
||||
sps30_write, /* write */
|
||||
NULL, /* seek */
|
||||
sps30_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, sps30_unlink /* unlink */
|
||||
|
@ -81,8 +81,8 @@ static const struct file_operations g_usensor_fops =
|
||||
usensor_write, /* write */
|
||||
NULL, /* seek */
|
||||
usensor_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL, /* poll */
|
||||
};
|
||||
|
||||
|
@ -127,8 +127,8 @@ static const struct file_operations g_pty_fops =
|
||||
pty_write, /* write */
|
||||
NULL, /* seek */
|
||||
pty_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
pty_poll /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, pty_unlink /* unlink */
|
||||
|
@ -126,8 +126,8 @@ static const struct file_operations g_serialops =
|
||||
uart_write, /* write */
|
||||
NULL, /* seek */
|
||||
uart_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
uart_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -90,8 +90,8 @@ static const struct file_operations g_uart_bth4_ops =
|
||||
uart_bth4_write, /* write */
|
||||
NULL, /* seek */
|
||||
uart_bth4_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
uart_bth4_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -99,8 +99,8 @@ static const struct file_operations spidrvr_fops =
|
||||
spidrvr_write, /* write */
|
||||
NULL, /* seek */
|
||||
spidrvr_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, spidrvr_unlink /* unlink */
|
||||
|
@ -127,8 +127,8 @@ static const struct file_operations g_spislavefops =
|
||||
spi_slave_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, spi_slave_unlink /* unlink */
|
||||
|
@ -114,8 +114,8 @@ static const struct file_operations g_ramlogfops =
|
||||
ramlog_file_write, /* write */
|
||||
NULL, /* seek */
|
||||
ramlog_file_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
ramlog_file_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -129,8 +129,8 @@ static const struct file_operations rtc_fops =
|
||||
rtc_write, /* write */
|
||||
NULL, /* seek */
|
||||
rtc_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
NULL /* poll */
|
||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||
, rtc_unlink /* unlink */
|
||||
|
@ -254,8 +254,8 @@ static const struct file_operations g_adb_fops =
|
||||
adb_char_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
adb_char_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -347,8 +347,8 @@ static const struct file_operations cdcwdm_fops =
|
||||
cdcwdm_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
cdcwdm_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -341,8 +341,8 @@ static const struct file_operations g_hidkbd_fops =
|
||||
usbhost_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
usbhost_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -391,8 +391,8 @@ static const struct file_operations g_hidmouse_fops =
|
||||
usbhost_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
usbhost_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -296,8 +296,8 @@ static const struct file_operations g_xboxcontroller_fops =
|
||||
usbhost_write, /* write */
|
||||
NULL, /* seek */
|
||||
usbhost_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
usbhost_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -94,8 +94,8 @@ static const struct file_operations g_fusb301ops =
|
||||
fusb301_write, /* write */
|
||||
NULL, /* seek */
|
||||
fusb301_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
fusb301_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -128,8 +128,8 @@ static const struct file_operations g_fusb303ops =
|
||||
fusb303_write, /* write */
|
||||
NULL, /* seek */
|
||||
fusb303_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
fusb303_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -103,8 +103,8 @@ static const struct file_operations g_usrsockdevops =
|
||||
usrsockdev_write, /* write */
|
||||
usrsockdev_seek, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
usrsockdev_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -88,8 +88,8 @@ static const struct file_operations fb_fops =
|
||||
fb_write, /* write */
|
||||
fb_seek, /* seek */
|
||||
fb_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
fb_mmap, /* mmap */
|
||||
NULL, /* truncate */
|
||||
fb_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -287,7 +287,6 @@ static const struct file_operations g_video_fops =
|
||||
video_write, /* write */
|
||||
NULL, /* seek */
|
||||
video_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
video_mmap, /* mmap */
|
||||
};
|
||||
|
||||
|
@ -305,8 +305,8 @@ static const struct file_operations g_cc1101ops =
|
||||
cc1101_file_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
cc1101_file_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -231,8 +231,8 @@ static const struct file_operations g_gs2200m_fops =
|
||||
gs2200m_write, /* write */
|
||||
NULL, /* seek */
|
||||
gs2200m_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
gs2200m_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -451,8 +451,8 @@ static const struct file_operations sx127x_fops =
|
||||
sx127x_write, /* write */
|
||||
NULL, /* seek */
|
||||
sx127x_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
sx127x_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -239,8 +239,8 @@ static const struct file_operations nrf24l01_fops =
|
||||
nrf24l01_write, /* write */
|
||||
NULL, /* seek */
|
||||
nrf24l01_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
nrf24l01_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -109,8 +109,8 @@ const struct mountpt_operations binfs_operations =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
binfs_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
|
||||
NULL, /* sync */
|
||||
binfs_dup, /* dup */
|
||||
|
@ -184,8 +184,8 @@ const struct mountpt_operations cromfs_operations =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
cromfs_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
|
||||
NULL, /* sync */
|
||||
cromfs_dup, /* dup */
|
||||
|
@ -115,8 +115,8 @@ const struct mountpt_operations fat_operations =
|
||||
fat_write, /* write */
|
||||
fat_seek, /* seek */
|
||||
fat_ioctl, /* ioctl */
|
||||
fat_truncate, /* truncate */
|
||||
NULL, /* mmap */
|
||||
fat_truncate, /* truncate */
|
||||
fat_sync, /* sync */
|
||||
fat_dup, /* dup */
|
||||
fat_fstat, /* fstat */
|
||||
|
@ -142,8 +142,8 @@ const struct mountpt_operations hostfs_operations =
|
||||
hostfs_write, /* write */
|
||||
hostfs_seek, /* seek */
|
||||
hostfs_ioctl, /* ioctl */
|
||||
hostfs_ftruncate, /* ftruncate */
|
||||
NULL, /* mmap */
|
||||
hostfs_ftruncate, /* ftruncate */
|
||||
|
||||
hostfs_sync, /* sync */
|
||||
hostfs_dup, /* dup */
|
||||
|
@ -140,8 +140,8 @@ const struct mountpt_operations littlefs_operations =
|
||||
littlefs_write, /* write */
|
||||
littlefs_seek, /* seek */
|
||||
littlefs_ioctl, /* ioctl */
|
||||
littlefs_truncate, /* truncate */
|
||||
NULL, /* mmap */
|
||||
littlefs_truncate, /* truncate */
|
||||
|
||||
littlefs_sync, /* sync */
|
||||
littlefs_dup, /* dup */
|
||||
|
@ -60,8 +60,8 @@ static const struct file_operations g_nxmq_fileops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
nxmq_file_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -198,8 +198,8 @@ const struct mountpt_operations nfs_operations =
|
||||
nfs_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
nfs_truncate, /* truncate */
|
||||
NULL, /* mmap */
|
||||
nfs_truncate, /* truncate */
|
||||
|
||||
NULL, /* sync */
|
||||
nfs_dup, /* dup */
|
||||
|
@ -54,12 +54,12 @@ const struct mountpt_operations nxffs_operations =
|
||||
nxffs_write, /* write */
|
||||
NULL, /* seek -- Use f_pos in struct file */
|
||||
nxffs_ioctl, /* ioctl */
|
||||
NULL, /* mmap */
|
||||
#ifdef __NO_TRUNCATE_SUPPORT__
|
||||
nxffs_truncate, /* truncate */
|
||||
#else
|
||||
NULL, /* truncate */
|
||||
#endif
|
||||
NULL, /* mmap */
|
||||
|
||||
NULL, /* sync -- No buffered data */
|
||||
nxffs_dup, /* dup */
|
||||
|
@ -252,8 +252,8 @@ const struct mountpt_operations procfs_operations =
|
||||
procfs_write, /* write */
|
||||
NULL, /* seek */
|
||||
procfs_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
|
||||
NULL, /* sync */
|
||||
procfs_dup, /* dup */
|
||||
|
@ -121,8 +121,8 @@ const struct mountpt_operations romfs_operations =
|
||||
NULL, /* write */
|
||||
romfs_seek, /* seek */
|
||||
romfs_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
romfs_mmap, /* mmap */
|
||||
NULL, /* truncate */
|
||||
|
||||
NULL, /* sync */
|
||||
romfs_dup, /* dup */
|
||||
|
@ -161,8 +161,8 @@ const struct mountpt_operations rpmsgfs_operations =
|
||||
rpmsgfs_write, /* write */
|
||||
rpmsgfs_seek, /* seek */
|
||||
rpmsgfs_ioctl, /* ioctl */
|
||||
rpmsgfs_ftruncate, /* ftruncate */
|
||||
NULL, /* mmap */
|
||||
rpmsgfs_ftruncate, /* ftruncate */
|
||||
|
||||
rpmsgfs_sync, /* sync */
|
||||
rpmsgfs_dup, /* dup */
|
||||
|
@ -140,8 +140,8 @@ const struct mountpt_operations smartfs_operations =
|
||||
smartfs_write, /* write */
|
||||
smartfs_seek, /* seek */
|
||||
smartfs_ioctl, /* ioctl */
|
||||
smartfs_truncate, /* truncate */
|
||||
NULL, /* mmap */
|
||||
smartfs_truncate, /* truncate */
|
||||
|
||||
smartfs_sync, /* sync */
|
||||
smartfs_dup, /* dup */
|
||||
|
@ -64,8 +64,8 @@ static const struct file_operations g_sock_fileops =
|
||||
sock_file_write, /* write */
|
||||
NULL, /* seek */
|
||||
sock_file_ioctl, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
sock_file_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -141,8 +141,8 @@ const struct mountpt_operations spiffs_operations =
|
||||
spiffs_write, /* write */
|
||||
spiffs_seek, /* seek */
|
||||
spiffs_ioctl, /* ioctl */
|
||||
spiffs_truncate, /* truncate */
|
||||
NULL, /* mmap */
|
||||
spiffs_truncate, /* truncate */
|
||||
|
||||
spiffs_sync, /* sync */
|
||||
spiffs_dup, /* dup */
|
||||
|
@ -178,8 +178,8 @@ const struct mountpt_operations tmpfs_operations =
|
||||
tmpfs_write, /* write */
|
||||
tmpfs_seek, /* seek */
|
||||
NULL, /* ioctl */
|
||||
tmpfs_truncate, /* truncate */
|
||||
tmpfs_mmap, /* mmap */
|
||||
tmpfs_truncate, /* truncate */
|
||||
|
||||
tmpfs_sync, /* sync */
|
||||
tmpfs_dup, /* dup */
|
||||
|
@ -222,8 +222,8 @@ const struct mountpt_operations unionfs_operations =
|
||||
unionfs_write, /* write */
|
||||
unionfs_seek, /* seek */
|
||||
unionfs_ioctl, /* ioctl */
|
||||
unionfs_truncate, /* truncate */
|
||||
NULL, /* mmap */
|
||||
unionfs_truncate, /* truncate */
|
||||
|
||||
unionfs_sync, /* sync */
|
||||
unionfs_dup, /* dup */
|
||||
|
@ -160,8 +160,8 @@ const struct mountpt_operations userfs_operations =
|
||||
userfs_write, /* write */
|
||||
userfs_seek, /* seek */
|
||||
userfs_ioctl, /* ioctl */
|
||||
userfs_truncate, /* truncate */
|
||||
NULL, /* mmap */
|
||||
userfs_truncate, /* truncate */
|
||||
|
||||
userfs_sync, /* sync */
|
||||
userfs_dup, /* dup */
|
||||
|
@ -104,8 +104,8 @@ static const struct file_operations g_epoll_ops =
|
||||
NULL, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
epoll_do_poll /* poll */
|
||||
};
|
||||
|
||||
|
@ -100,8 +100,8 @@ static const struct file_operations g_eventfd_fops =
|
||||
eventfd_do_write, /* write */
|
||||
NULL, /* seek */
|
||||
NULL, /* ioctl */
|
||||
NULL, /* truncate */
|
||||
NULL, /* mmap */
|
||||
NULL, /* truncate */
|
||||
#ifdef CONFIG_EVENT_FD_POLL
|
||||
eventfd_do_poll /* poll */
|
||||
#endif
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user