Skip to content

Commit 72a29d6

Browse files
2e
1 parent dbd9b08 commit 72a29d6

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
https://picocomputer.github.io/
44

5-
Requires Sphinx:
5+
Built with Sphinx:
66

77
https://www.sphinx-doc.org/
8+
9+
You can make small edits directly in the GitHub web interface.

docs/source/os.rst

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,30 @@ GETLABEL
12111211
:errno: EINVAL, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY, FR_INVALID_DRIVE, FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_TIMEOUT
12121212
12131213
1214+
GETFREE
1215+
-------
1216+
1217+
.. c:function:: int f_getfree (const char* name, unsigned long* free, unsigned long* total)
1218+
1219+
.. code-block:: c
1220+
1221+
struct {
1222+
unsigned long free;
1223+
unsigned long total;
1224+
};
1225+
1226+
Get the volume free and total space in number of 512 bytes blocks.
1227+
1228+
:Op code: RIA_OP_GETFREE 0x2E
1229+
:C proto: rp6502.h
1230+
:param name: Volume name.
1231+
:param free: Storage for returned value.
1232+
:param total: Storage for returned value.
1233+
:returns: 0 on success. -1 on error.
1234+
:a regs: return
1235+
:errno: EINVAL, FR_DISK_ERR, FR_INT_ERR, FR_NOT_READY, FR_INVALID_DRIVE, FR_NOT_ENABLED, FR_NO_FILESYSTEM, FR_TIMEOUT
1236+
1237+
12141238
EXIT
12151239
----
12161240

0 commit comments

Comments
 (0)