Home
last modified time | relevance | path

Searched refs:ppos (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
H A Dmtd_char_lite.c119 off_t ppos = filep->f_pos; in MtdCharRead() local
136 if (ppos < 0 || ppos > partSize) { in MtdCharRead()
137 PRINTK("MtdCharRead: current file offset:0x%x invalid!\n", ppos); in MtdCharRead()
142 if ((mfi->mode == MTD_FILE_MODE_OOB && (ppos + buflen) > (partSize + partOobSize)) || in MtdCharRead()
143 (mfi->mode != MTD_FILE_MODE_OOB && (ppos + buflen) > partSize)) { in MtdCharRead()
157 ret = MtdDeviceRead(mtdDevice, partStart + ppos, buflen, (uint8_t *)buffer); in MtdCharRead()
179 off_t ppos = filep->f_pos; in MtdCharWrite() local
196 if (ppos < 0 || ppos > partSize) { in MtdCharWrite()
197 PRINTK("MtdCharWrite: current file offset:0x%x invalid!\n", ppos); in MtdCharWrite()
202 if ((mfi->mode == MTD_FILE_MODE_OOB && (ppos + buflen) > (partSize + partOobSize)) || in MtdCharWrite()
[all …]
/ohos5.0/docs/zh-cn/device-dev/kernel/
H A Dkernel-small-bundles-fs-support.md379 static int TestWrite(struct ProcFile *pf, const char *buffer, size_t buflen, loff_t *ppos)
/ohos5.0/docs/zh-cn/contribute/
H A DOpenHarmony-c-cpp-secure-coding-guide.md2854 …ze_t incorrect_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)
2871 ssize_t correct_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)
/ohos5.0/docs/en/device-dev/kernel/
H A Dkernel-small-bundles-fs-support.md385 static int TestWrite(struct ProcFile *pf, const char *buffer, size_t buflen, loff_t *ppos)
/ohos5.0/docs/en/contribute/
H A DOpenHarmony-c-cpp-secure-coding-guide.md2924 …ze_t incorrect_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)
2941 ssize_t correct_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos)