Displaying 4 results from an estimated 4 matches for "open_file_t".
2008 Nov 27
1
RFC: COMBOOT API directory calls
...ead and the offset within the sector for
the next file entry to read. I'm contemplating if I should also keep
track of the starting sector of the directory (in case we need to
rewinddir()).
At the moment, I'm first looking at SYSLINUX (the other disk
derivatives are next). It has a struc open_file_t and an array
containing these strucs Files. Should I create a new struc,
open_dir_t to house the needed data elements, or reuse the existing
struc? If I should reuse open_file_t, how should I and should I
allocate a new array Dirs or reuse Files? If I don't reuse
open_file_t, Dirs will be a...
2009 Oct 25
0
[fsc]Adding a generic path_lookup function in VFS
...#39;/')
> name++;
> }
>
For I just applied it to EXTLINUX, and I don't want to break the other fs, I
added two union structure in file structure:
> struct file {
> struct fs_info *fs;
> union {
> struct inode *inode;
> struct open_file_t *open_file;
> } u1;
> union {
> uint32_t offset;
> uint32_t file_len;
> } u2;
> };
>
the inode--offset pair is used in the generic path_lookup method, while the
open_file--file_len pair is for the old method. And with the inode-offset
pair, we don...
2009 Feb 08
1
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT; Try 2
...d the desired directory; ZF set but EAX not 0
+.founddir:
+ ret
+
.badfile:
xor eax,eax
mov [si],eax ; Free file structure
.notfound:
+ xor eax,eax ; Zero out EAX
+ ret
+
+;
+; readdir: Read one file from a directory
+;
+; ES:DI -> String buffer (filename)
+; DS:SI -> Pointer to open_file_t
+; DS Must be the SYSLINUX Data Segment
+;
+; Returns the file's name in the filename string buffer
+; EAX returns the file size
+; EBX returns the beginning sector (currently without offsetting)
+; DL returns the file type
+; The directory handle's data is incremented to reflect a name rea...
2008 Dec 04
2
[PATCH 1/1] COMBOOT API: Add calls for directory functions; Implement for FAT
...d the desired directory; ZF set but EAX not 0
+.founddir:
+ ret
+
.badfile:
xor eax,eax
mov [si],eax ; Free file structure
.notfound:
+ xor eax,eax ; Zero out EAX
+ ret
+
+;
+; readdir: Read one file from a directory
+;
+; ES:DI -> String buffer (filename)
+; DS:SI -> Pointer to open_file_t
+;
+; Returns the file's name in the filename string buffer
+; EAX returns the file size
+; EBX returns the beginning sector (currently without offsetting)
+; DL returns the file type
+; The directory handle's data is incremented to reflect a name read.
+;
+readdir:
+ push ecx
+ push si
+...