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