File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,12 @@ that the block device supports the extended interface.
314
314
``ioctl(6, ...) `` must also be intercepted. The need for others is
315
315
hardware dependent.
316
316
317
+ Prior to any call to ``writeblocks(block, ...) `` littlefs issues
318
+ ``ioctl(6, block) ``. This enables a device driver to erase the block
319
+ prior to a write if the hardware requires it. Alternatively a driver
320
+ might intercept ``ioctl(6, block) `` and return 0 (success). In this case
321
+ the driver assumes responsibility for detecting the need for erasure.
322
+
317
323
Unless otherwise stated ``ioctl(op, arg) `` can return ``None ``.
318
324
Consequently an implementation can ignore unused values of ``op ``. Where
319
325
``op `` is intercepted, the return value for operations 4 and 5 are as
You can’t perform that action at this time.
0 commit comments