The iocb argument can usually be treated as an opaque cookie used by the AIO subsystem; if you need the struct file pointer for this file descriptor, however, you can find it as iocb->ki_filp.
通常可以把iocb看作AIO子系统使用的不透明数据结构。然而,如果需要文件描述符的struct file指针,可以通过iocb->ki_flip获取。
Returns a struct containing a member named url, which provides the url of the file using either HTTP or FTP.
返回一个结构体,其中包含一个名为url的成员,该成员使用HTTP或ftp格式提供文件的url。
If the entry is a file, you print the name and the number of bytes it's currently using (found using the st_size member of the struct stat).
如果该条目是一个文件,那么显示其名称和字节数(可在structstat的st_size成员中找到)。
The stat() function fills a struct stat structure with information about a specific file; if you've got a file descriptor instead of a file name, you can use the fstat() function instead.
stat()函数会将特定文件的相关信息填入struct stat结构中,如果您获得的是文件描述符而不是文件名,那么作为替代,您可以使用fstat() 函数。
As shown in Listing 1, the virtual file system is maintained as a linked list of struct VFS, as denoted by the member vfs_next.
如清单1所示,由成员vfs_next指定,虚拟文件系统作为structvfs的链表进行维护。
If the message indicates success, information from the returned message gets stuffed into the struct stat object, replacing the real data with the recorded data from the virtual file system.
如果消息表明成功,来自返回消息的信息将填充到structstat对象,从而使用来自虚拟文件系统的记录数据取代真实的数据。
Vfs_gfs points to the struct GFS structure for the corresponding file system.
vfs_gfs指向对应的文件系统的structgfs结构。
Vfs_gfs points to the struct GFS structure for the corresponding file system.
vfs_gfs指向对应的文件系统的structgfs结构。
应用推荐