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, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cxd56_geofence_ioctl, /* ioctl */
|
cxd56_geofence_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
cxd56_geofence_poll /* poll */
|
cxd56_geofence_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -317,6 +317,7 @@ 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 */
|
||||||
cxd56_gnss_poll /* poll */
|
cxd56_gnss_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -145,6 +145,7 @@ 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 */
|
||||||
hif_poll /* poll */
|
hif_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, hif_unlink /* unlink */
|
, hif_unlink /* unlink */
|
||||||
|
@ -249,6 +249,7 @@ 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 */
|
||||||
sam_tsd_poll /* poll */
|
sam_tsd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -296,6 +296,7 @@ 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 */
|
||||||
slcd_poll /* poll */
|
slcd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -268,6 +268,7 @@ static const struct file_operations tc_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
tc_ioctl, /* ioctl */
|
tc_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
tc_poll /* poll */
|
tc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -346,6 +346,7 @@ 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 */
|
||||||
slcd_poll /* poll */
|
slcd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -249,6 +249,7 @@ static const struct file_operations tc_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
tc_ioctl, /* ioctl */
|
tc_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
tc_poll /* poll */
|
tc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -181,6 +181,7 @@ 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 */
|
||||||
lcd_poll /* poll */
|
lcd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -125,6 +125,7 @@ static const struct file_operations g_cryptofops =
|
|||||||
cryptof_write, /* write */
|
cryptof_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cryptof_ioctl, /* ioctl */
|
cryptof_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
cryptof_poll /* poll */
|
cryptof_poll /* poll */
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -136,6 +137,7 @@ static const struct file_operations g_cryptoops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cryptoioctl, /* ioctl */
|
cryptoioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -72,6 +72,7 @@ static const struct file_operations g_adc_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
adc_ioctl, /* ioctl */
|
adc_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
adc_poll /* poll */
|
adc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -65,6 +65,7 @@ static const struct file_operations comp_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
comp_ioctl, /* ioctl */
|
comp_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
comp_poll /* poll */
|
comp_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -78,6 +78,7 @@ 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 */
|
||||||
bch_poll /* poll */
|
bch_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, bch_unlink /* unlink */
|
, bch_unlink /* unlink */
|
||||||
|
@ -135,6 +135,7 @@ 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 */
|
||||||
can_poll /* poll */
|
can_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -100,6 +100,7 @@ static const struct file_operations g_urand_fops =
|
|||||||
devurand_write, /* write */
|
devurand_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
devurand_poll /* poll */
|
devurand_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -99,6 +99,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, i2cdrvr_unlink /* unlink */
|
, i2cdrvr_unlink /* unlink */
|
||||||
|
@ -122,6 +122,7 @@ static const struct file_operations ads7843e_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ads7843e_ioctl, /* ioctl */
|
ads7843e_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
ads7843e_poll /* poll */
|
ads7843e_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -135,6 +135,7 @@ static const struct file_operations ajoy_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ajoy_ioctl, /* ioctl */
|
ajoy_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
ajoy_poll /* poll */
|
ajoy_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -133,6 +133,7 @@ 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 */
|
||||||
btn_poll /* poll */
|
btn_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -224,6 +224,7 @@ static const struct file_operations g_mbr3108_fileops =
|
|||||||
mbr3108_write, /* write */
|
mbr3108_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
mbr3108_poll /* poll */
|
mbr3108_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -135,6 +135,7 @@ static const struct file_operations djoy_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
djoy_ioctl, /* ioctl */
|
djoy_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
djoy_poll /* poll */
|
djoy_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -176,6 +176,7 @@ static const struct file_operations ft5x06_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ft5x06_ioctl, /* ioctl */
|
ft5x06_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
ft5x06_poll /* poll */
|
ft5x06_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -88,6 +88,7 @@ static const struct file_operations g_keyboard_fops =
|
|||||||
keyboard_write, /* write */
|
keyboard_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
keyboard_poll /* poll */
|
keyboard_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -115,6 +115,7 @@ static const struct file_operations max11802_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
max11802_ioctl, /* ioctl */
|
max11802_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
max11802_poll /* poll */
|
max11802_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -280,6 +280,7 @@ static const struct file_operations mxt_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
mxt_ioctl, /* ioctl */
|
mxt_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
mxt_poll /* poll */
|
mxt_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -255,6 +255,7 @@ static const struct file_operations g_hidkbd_fops =
|
|||||||
spq10kbd_write, /* write */
|
spq10kbd_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
spq10kbd_poll /* poll */
|
spq10kbd_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -124,6 +124,7 @@ static const struct file_operations g_stmpe811fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
stmpe811_ioctl, /* ioctl */
|
stmpe811_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
stmpe811_poll /* poll */
|
stmpe811_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -90,6 +90,7 @@ 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 */
|
||||||
touch_poll /* poll */
|
touch_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -209,6 +209,7 @@ static const struct file_operations tsc2007_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
tsc2007_ioctl, /* ioctl */
|
tsc2007_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
tsc2007_poll /* poll */
|
tsc2007_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -134,6 +134,7 @@ static const struct file_operations g_ft80x_fops =
|
|||||||
ft80x_write, /* write */
|
ft80x_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
ft80x_ioctl, /* ioctl */
|
ft80x_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, ft80x_unlink /* unlink */
|
, ft80x_unlink /* unlink */
|
||||||
|
@ -117,6 +117,7 @@ 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 */
|
||||||
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 */
|
||||||
|
@ -170,6 +170,7 @@ 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 */
|
||||||
tda19988_poll /* poll */
|
tda19988_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, tda19988_unlink /* unlink */
|
, tda19988_unlink /* unlink */
|
||||||
|
@ -57,6 +57,7 @@ static const struct file_operations devnull_fops =
|
|||||||
devnull_write, /* write */
|
devnull_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
devnull_poll /* poll */
|
devnull_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -57,6 +57,7 @@ static const struct file_operations devzero_fops =
|
|||||||
devzero_write, /* write */
|
devzero_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
devzero_poll /* poll */
|
devzero_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -165,6 +165,7 @@ 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 */
|
||||||
rpmsgdev_poll /* poll */
|
rpmsgdev_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -77,6 +77,7 @@ static const struct file_operations g_alt1250fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
alt1250_ioctl, /* ioctl */
|
alt1250_ioctl, /* ioctl */
|
||||||
|
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];
|
||||||
|
@ -114,6 +114,7 @@ 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 */
|
||||||
ubxmdm_poll /* poll */
|
ubxmdm_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -119,6 +119,7 @@ static const struct file_operations mtdconfig_fops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
mtdconfig_ioctl, /* ioctl */
|
mtdconfig_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
mtdconfig_poll /* poll */
|
mtdconfig_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -141,6 +141,7 @@ static const struct file_operations g_mtdnvs_fops =
|
|||||||
NULL, /* Write */
|
NULL, /* Write */
|
||||||
NULL, /* Seek */
|
NULL, /* Seek */
|
||||||
mtdconfig_ioctl, /* Ioctl */
|
mtdconfig_ioctl, /* Ioctl */
|
||||||
|
NULL, /* Truncate */
|
||||||
mtdconfig_poll /* Poll */
|
mtdconfig_poll /* Poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* Unlink */
|
, NULL /* Unlink */
|
||||||
|
@ -190,6 +190,7 @@ 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 */
|
||||||
telnet_poll /* poll */
|
telnet_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
@ -204,6 +205,7 @@ static const struct file_operations g_factory_fops =
|
|||||||
factory_write, /* write */
|
factory_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
factory_ioctl, /* ioctl */
|
factory_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -219,6 +219,7 @@ 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 */
|
||||||
tun_poll /* poll */
|
tun_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -47,6 +47,7 @@ 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 */
|
||||||
pipecommon_poll /* poll */
|
pipecommon_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, pipecommon_unlink /* unlink */
|
, pipecommon_unlink /* unlink */
|
||||||
|
@ -61,6 +61,7 @@ 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 */
|
||||||
pipecommon_poll /* poll */
|
pipecommon_poll /* poll */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -91,6 +91,7 @@ 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 */
|
||||||
bat_charger_poll /* poll */
|
bat_charger_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -93,6 +93,7 @@ static const struct file_operations g_batteryops =
|
|||||||
bat_gauge_write, /* write */
|
bat_gauge_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
bat_gauge_ioctl, /* ioctl */
|
bat_gauge_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
bat_gauge_poll /* poll */
|
bat_gauge_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -92,6 +92,7 @@ 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 */
|
||||||
bat_monitor_poll /* poll */
|
bat_monitor_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -103,6 +103,7 @@ 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 */
|
||||||
lirc_poll /* poll */
|
lirc_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -116,6 +116,7 @@ static const struct file_operations g_aht10fops =
|
|||||||
aht10_write, /* write */
|
aht10_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
aht10_ioctl, /* ioctl */
|
aht10_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, aht10_unlink /* unlink */
|
, aht10_unlink /* unlink */
|
||||||
|
@ -90,6 +90,7 @@ 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 */
|
||||||
hcsr04_poll /* poll */
|
hcsr04_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -161,6 +161,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, hdc1008_unlink /* unlink */
|
, hdc1008_unlink /* unlink */
|
||||||
|
@ -157,6 +157,7 @@ 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 */
|
||||||
hts221_poll /* poll */
|
hts221_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -154,6 +154,7 @@ 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 */
|
||||||
lis2dh_poll /* poll */
|
lis2dh_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -112,6 +112,7 @@ 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 */
|
||||||
max44009_poll /* poll */
|
max44009_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -182,6 +182,7 @@ static const struct file_operations g_scd30fops =
|
|||||||
scd30_write, /* write */
|
scd30_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
scd30_ioctl, /* ioctl */
|
scd30_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, scd30_unlink /* unlink */
|
, scd30_unlink /* unlink */
|
||||||
|
@ -190,6 +190,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, scd41_unlink /* unlink */
|
, scd41_unlink /* unlink */
|
||||||
|
@ -167,6 +167,7 @@ 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 */
|
||||||
sensor_poll /* poll */
|
sensor_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -159,6 +159,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, sgp30_unlink /* unlink */
|
, sgp30_unlink /* unlink */
|
||||||
|
@ -131,6 +131,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, sht21_unlink /* unlink */
|
, sht21_unlink /* unlink */
|
||||||
|
@ -170,6 +170,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, sht3x_unlink /* unlink */
|
, sht3x_unlink /* unlink */
|
||||||
|
@ -175,6 +175,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, sps30_unlink /* unlink */
|
, sps30_unlink /* unlink */
|
||||||
|
@ -81,6 +81,7 @@ 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, /* poll */
|
NULL, /* poll */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -127,6 +127,7 @@ 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 */
|
||||||
pty_poll /* poll */
|
pty_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, pty_unlink /* unlink */
|
, pty_unlink /* unlink */
|
||||||
|
@ -126,6 +126,7 @@ 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 */
|
||||||
uart_poll /* poll */
|
uart_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -90,6 +90,7 @@ 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 */
|
||||||
uart_bth4_poll /* poll */
|
uart_bth4_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -99,6 +99,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, spidrvr_unlink /* unlink */
|
, spidrvr_unlink /* unlink */
|
||||||
|
@ -127,6 +127,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, spi_slave_unlink /* unlink */
|
, spi_slave_unlink /* unlink */
|
||||||
|
@ -114,6 +114,7 @@ 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 */
|
||||||
ramlog_file_poll /* poll */
|
ramlog_file_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -129,6 +129,7 @@ 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 /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, rtc_unlink /* unlink */
|
, rtc_unlink /* unlink */
|
||||||
|
@ -254,6 +254,7 @@ 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 */
|
||||||
adb_char_poll /* poll */
|
adb_char_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -347,6 +347,7 @@ static const struct file_operations cdcwdm_fops =
|
|||||||
cdcwdm_write, /* write */
|
cdcwdm_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
cdcwdm_poll /* poll */
|
cdcwdm_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -341,6 +341,7 @@ static const struct file_operations g_hidkbd_fops =
|
|||||||
usbhost_write, /* write */
|
usbhost_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
usbhost_poll /* poll */
|
usbhost_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -391,6 +391,7 @@ static const struct file_operations g_hidmouse_fops =
|
|||||||
usbhost_write, /* write */
|
usbhost_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
usbhost_poll /* poll */
|
usbhost_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -296,6 +296,7 @@ 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 */
|
||||||
usbhost_poll /* poll */
|
usbhost_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -94,6 +94,7 @@ static const struct file_operations g_fusb301ops =
|
|||||||
fusb301_write, /* write */
|
fusb301_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
fusb301_ioctl, /* ioctl */
|
fusb301_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
fusb301_poll /* poll */
|
fusb301_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -128,6 +128,7 @@ 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 */
|
||||||
fusb303_poll /* poll */
|
fusb303_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -103,6 +103,7 @@ 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 */
|
||||||
usrsockdev_poll /* poll */
|
usrsockdev_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -85,6 +85,7 @@ 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_poll /* poll */
|
fb_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -284,6 +284,7 @@ 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 */
|
||||||
NULL /* poll */
|
NULL /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -305,6 +305,7 @@ 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 */
|
||||||
cc1101_file_poll /* poll */
|
cc1101_file_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -231,6 +231,7 @@ 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 */
|
||||||
gs2200m_poll /* poll */
|
gs2200m_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -451,6 +451,7 @@ 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 */
|
||||||
sx127x_poll /* poll */
|
sx127x_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -239,6 +239,7 @@ 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 */
|
||||||
nrf24l01_poll /* poll */
|
nrf24l01_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -109,12 +109,12 @@ const struct mountpt_operations binfs_operations =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
binfs_ioctl, /* ioctl */
|
binfs_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
|
|
||||||
NULL, /* sync */
|
NULL, /* sync */
|
||||||
binfs_dup, /* dup */
|
binfs_dup, /* dup */
|
||||||
binfs_fstat, /* fstat */
|
binfs_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
NULL, /* truncate */
|
|
||||||
|
|
||||||
binfs_opendir, /* opendir */
|
binfs_opendir, /* opendir */
|
||||||
binfs_closedir, /* closedir */
|
binfs_closedir, /* closedir */
|
||||||
|
@ -184,12 +184,12 @@ const struct mountpt_operations cromfs_operations =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
cromfs_ioctl, /* ioctl */
|
cromfs_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
|
|
||||||
NULL, /* sync */
|
NULL, /* sync */
|
||||||
cromfs_dup, /* dup */
|
cromfs_dup, /* dup */
|
||||||
cromfs_fstat, /* fstat */
|
cromfs_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
NULL, /* truncate */
|
|
||||||
|
|
||||||
cromfs_opendir, /* opendir */
|
cromfs_opendir, /* opendir */
|
||||||
cromfs_closedir, /* closedir */
|
cromfs_closedir, /* closedir */
|
||||||
|
@ -115,12 +115,11 @@ 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 */
|
||||||
fat_sync, /* sync */
|
fat_sync, /* sync */
|
||||||
fat_dup, /* dup */
|
fat_dup, /* dup */
|
||||||
fat_fstat, /* fstat */
|
fat_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
fat_truncate, /* truncate */
|
|
||||||
|
|
||||||
fat_opendir, /* opendir */
|
fat_opendir, /* opendir */
|
||||||
fat_closedir, /* closedir */
|
fat_closedir, /* closedir */
|
||||||
|
@ -142,12 +142,12 @@ 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 */
|
||||||
|
|
||||||
hostfs_sync, /* sync */
|
hostfs_sync, /* sync */
|
||||||
hostfs_dup, /* dup */
|
hostfs_dup, /* dup */
|
||||||
hostfs_fstat, /* fstat */
|
hostfs_fstat, /* fstat */
|
||||||
hostfs_fchstat, /* fchstat */
|
hostfs_fchstat, /* fchstat */
|
||||||
hostfs_ftruncate, /* ftruncate */
|
|
||||||
|
|
||||||
hostfs_opendir, /* opendir */
|
hostfs_opendir, /* opendir */
|
||||||
hostfs_closedir, /* closedir */
|
hostfs_closedir, /* closedir */
|
||||||
|
@ -140,12 +140,12 @@ 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 */
|
||||||
|
|
||||||
littlefs_sync, /* sync */
|
littlefs_sync, /* sync */
|
||||||
littlefs_dup, /* dup */
|
littlefs_dup, /* dup */
|
||||||
littlefs_fstat, /* fstat */
|
littlefs_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
littlefs_truncate, /* truncate */
|
|
||||||
|
|
||||||
littlefs_opendir, /* opendir */
|
littlefs_opendir, /* opendir */
|
||||||
littlefs_closedir, /* closedir */
|
littlefs_closedir, /* closedir */
|
||||||
|
@ -60,6 +60,7 @@ static const struct file_operations g_nxmq_fileops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
nxmq_file_poll /* poll */
|
nxmq_file_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -198,12 +198,12 @@ const struct mountpt_operations nfs_operations =
|
|||||||
nfs_write, /* write */
|
nfs_write, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
nfs_truncate, /* truncate */
|
||||||
|
|
||||||
NULL, /* sync */
|
NULL, /* sync */
|
||||||
nfs_dup, /* dup */
|
nfs_dup, /* dup */
|
||||||
nfs_fstat, /* fstat */
|
nfs_fstat, /* fstat */
|
||||||
nfs_fchstat, /* fchstat */
|
nfs_fchstat, /* fchstat */
|
||||||
nfs_truncate, /* truncate */
|
|
||||||
|
|
||||||
nfs_opendir, /* opendir */
|
nfs_opendir, /* opendir */
|
||||||
nfs_closedir, /* closedir */
|
nfs_closedir, /* closedir */
|
||||||
|
@ -54,17 +54,17 @@ 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, /* sync -- No buffered data */
|
|
||||||
nxffs_dup, /* dup */
|
|
||||||
nxffs_fstat, /* fstat */
|
|
||||||
NULL, /* fchstat */
|
|
||||||
#ifdef __NO_TRUNCATE_SUPPORT__
|
#ifdef __NO_TRUNCATE_SUPPORT__
|
||||||
nxffs_truncate, /* truncate */
|
nxffs_truncate, /* truncate */
|
||||||
#else
|
#else
|
||||||
NULL, /* truncate */
|
NULL, /* truncate */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
NULL, /* sync -- No buffered data */
|
||||||
|
nxffs_dup, /* dup */
|
||||||
|
nxffs_fstat, /* fstat */
|
||||||
|
NULL, /* fchstat */
|
||||||
|
|
||||||
nxffs_opendir, /* opendir */
|
nxffs_opendir, /* opendir */
|
||||||
nxffs_closedir, /* closedir */
|
nxffs_closedir, /* closedir */
|
||||||
nxffs_readdir, /* readdir */
|
nxffs_readdir, /* readdir */
|
||||||
|
@ -252,12 +252,12 @@ 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, /* sync */
|
NULL, /* sync */
|
||||||
procfs_dup, /* dup */
|
procfs_dup, /* dup */
|
||||||
procfs_fstat, /* fstat */
|
procfs_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
NULL, /* truncate */
|
|
||||||
|
|
||||||
procfs_opendir, /* opendir */
|
procfs_opendir, /* opendir */
|
||||||
procfs_closedir, /* closedir */
|
procfs_closedir, /* closedir */
|
||||||
|
@ -119,6 +119,7 @@ const struct mountpt_operations romfs_operations =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
romfs_seek, /* seek */
|
romfs_seek, /* seek */
|
||||||
romfs_ioctl, /* ioctl */
|
romfs_ioctl, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
|
|
||||||
NULL, /* sync */
|
NULL, /* sync */
|
||||||
romfs_dup, /* dup */
|
romfs_dup, /* dup */
|
||||||
|
@ -161,12 +161,12 @@ 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 */
|
||||||
|
|
||||||
rpmsgfs_sync, /* sync */
|
rpmsgfs_sync, /* sync */
|
||||||
rpmsgfs_dup, /* dup */
|
rpmsgfs_dup, /* dup */
|
||||||
rpmsgfs_fstat, /* fstat */
|
rpmsgfs_fstat, /* fstat */
|
||||||
rpmsgfs_fchstat, /* fchstat */
|
rpmsgfs_fchstat, /* fchstat */
|
||||||
rpmsgfs_ftruncate, /* ftruncate */
|
|
||||||
|
|
||||||
rpmsgfs_opendir, /* opendir */
|
rpmsgfs_opendir, /* opendir */
|
||||||
rpmsgfs_closedir, /* closedir */
|
rpmsgfs_closedir, /* closedir */
|
||||||
|
@ -140,12 +140,12 @@ 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 */
|
||||||
|
|
||||||
smartfs_sync, /* sync */
|
smartfs_sync, /* sync */
|
||||||
smartfs_dup, /* dup */
|
smartfs_dup, /* dup */
|
||||||
smartfs_fstat, /* fstat */
|
smartfs_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
smartfs_truncate, /* truncate */
|
|
||||||
|
|
||||||
smartfs_opendir, /* opendir */
|
smartfs_opendir, /* opendir */
|
||||||
smartfs_closedir, /* closedir */
|
smartfs_closedir, /* closedir */
|
||||||
|
@ -64,6 +64,7 @@ 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 */
|
||||||
sock_file_poll /* poll */
|
sock_file_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, NULL /* unlink */
|
||||||
|
@ -141,12 +141,12 @@ 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 */
|
||||||
|
|
||||||
spiffs_sync, /* sync */
|
spiffs_sync, /* sync */
|
||||||
spiffs_dup, /* dup */
|
spiffs_dup, /* dup */
|
||||||
spiffs_fstat, /* fstat */
|
spiffs_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
spiffs_truncate, /* truncate */
|
|
||||||
|
|
||||||
spiffs_opendir, /* opendir */
|
spiffs_opendir, /* opendir */
|
||||||
spiffs_closedir, /* closedir */
|
spiffs_closedir, /* closedir */
|
||||||
|
@ -177,12 +177,12 @@ const struct mountpt_operations tmpfs_operations =
|
|||||||
tmpfs_write, /* write */
|
tmpfs_write, /* write */
|
||||||
tmpfs_seek, /* seek */
|
tmpfs_seek, /* seek */
|
||||||
tmpfs_ioctl, /* ioctl */
|
tmpfs_ioctl, /* ioctl */
|
||||||
|
tmpfs_truncate, /* truncate */
|
||||||
|
|
||||||
tmpfs_sync, /* sync */
|
tmpfs_sync, /* sync */
|
||||||
tmpfs_dup, /* dup */
|
tmpfs_dup, /* dup */
|
||||||
tmpfs_fstat, /* fstat */
|
tmpfs_fstat, /* fstat */
|
||||||
NULL, /* fchstat */
|
NULL, /* fchstat */
|
||||||
tmpfs_truncate, /* truncate */
|
|
||||||
|
|
||||||
tmpfs_opendir, /* opendir */
|
tmpfs_opendir, /* opendir */
|
||||||
tmpfs_closedir, /* closedir */
|
tmpfs_closedir, /* closedir */
|
||||||
|
@ -222,12 +222,12 @@ 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 */
|
||||||
|
|
||||||
unionfs_sync, /* sync */
|
unionfs_sync, /* sync */
|
||||||
unionfs_dup, /* dup */
|
unionfs_dup, /* dup */
|
||||||
unionfs_fstat, /* fstat */
|
unionfs_fstat, /* fstat */
|
||||||
unionfs_fchstat, /* fchstat */
|
unionfs_fchstat, /* fchstat */
|
||||||
unionfs_truncate, /* truncate */
|
|
||||||
|
|
||||||
unionfs_opendir, /* opendir */
|
unionfs_opendir, /* opendir */
|
||||||
unionfs_closedir, /* closedir */
|
unionfs_closedir, /* closedir */
|
||||||
|
@ -160,12 +160,12 @@ 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 */
|
||||||
|
|
||||||
userfs_sync, /* sync */
|
userfs_sync, /* sync */
|
||||||
userfs_dup, /* dup */
|
userfs_dup, /* dup */
|
||||||
userfs_fstat, /* fstat */
|
userfs_fstat, /* fstat */
|
||||||
userfs_fchstat, /* fchstat */
|
userfs_fchstat, /* fchstat */
|
||||||
userfs_truncate, /* truncate */
|
|
||||||
|
|
||||||
userfs_opendir, /* opendir */
|
userfs_opendir, /* opendir */
|
||||||
userfs_closedir, /* closedir */
|
userfs_closedir, /* closedir */
|
||||||
|
@ -104,6 +104,7 @@ static const struct file_operations g_epoll_ops =
|
|||||||
NULL, /* write */
|
NULL, /* write */
|
||||||
NULL, /* seek */
|
NULL, /* seek */
|
||||||
NULL, /* ioctl */
|
NULL, /* ioctl */
|
||||||
|
NULL, /* truncate */
|
||||||
epoll_do_poll /* poll */
|
epoll_do_poll /* poll */
|
||||||
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
#ifndef CONFIG_DISABLE_PSEUDOFS_OPERATIONS
|
||||||
, NULL /* unlink */
|
, 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