|
| | IntrusiveRefCounted () |
| |
| | IntrusiveRefCounted (const IntrusiveRefCounted &) |
| |
| IntrusiveRefCounted & | operator= (const IntrusiveRefCounted &) |
| |
| static int | addEntry (char **pos, char *end, int ino, char type, const StringPart &n) |
| |
| static int | addDefaultEntries (char **pos, int thisIno, int upIno) |
| |
| static int | addTerminatingEntry (char **pos, char *end) |
| |
| static const int | direntHeaderSizeNoPadding =offsetof(struct dirent,d_name) |
| |
| static const int | direntHeaderSize =(direntHeaderSizeNoPadding+3+3)/4*4 |
| |
|
static const int | minimumBufferSize =3*direntHeaderSize |
| | Minimum buffer accepted by getdents, two for . and .., plus terminating.
|
| |
Directory class for Fat32Fs
- Parameters
-
| parent | parent filesystem |
| mutex | mutex to lock when accessing the fiesystem |
| currentInode | inode value for '.' entry |
| parentInode | inode value for '..' entry |
| miosix::Fat32Directory::~Fat32Directory |
( |
| ) |
|
|
virtual |
| DIR_* miosix::Fat32Directory::directory |
( |
| ) |
|
|
inline |
- Returns
- the underlying directory object
| int miosix::Fat32Directory::getdents |
( |
void * |
dp, |
|
|
int |
len |
|
) |
| |
|
virtual |
Also directories can be opened as files. In this case, this system call allows to retrieve directory entries.
- Parameters
-
| dp | pointer to a memory buffer where one or more struct dirent will be placed. dp must be four words aligned. |
| len | memory buffer size. |
- Returns
- the number of bytes read on success, or a negative number on failure.
Reimplemented from miosix::FileBase.
The documentation for this class was generated from the following file: