Implement volume unmounting, collecting VFS volume info, usb Add eject command
This commit is contained in:
@@ -118,3 +118,9 @@ int get_proc_info (struct proc_info* infos, size_t count) {
|
||||
int get_device_info (struct device_info* infos, size_t count) {
|
||||
return (int)do_syscall (SYS_GET_DEVICE_INFO, infos, count);
|
||||
}
|
||||
|
||||
int get_volume_info (struct volume_info* infos, size_t count) {
|
||||
return (int)do_syscall (SYS_GET_VOLUME_INFO, infos, count);
|
||||
}
|
||||
|
||||
int volume_delete (const char* key) { return (int)do_syscall (SYS_VOLUME_DELETE, key); }
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
#include <proc_info.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <volume_info.h>
|
||||
|
||||
/* Quit the current running process */
|
||||
int quit (void);
|
||||
@@ -122,4 +123,10 @@ int get_proc_info (struct proc_info* infos, size_t count);
|
||||
/* get device information */
|
||||
int get_device_info (struct device_info* infos, size_t count);
|
||||
|
||||
/* get volume information */
|
||||
int get_volume_info (struct volume_info* infos, size_t count);
|
||||
|
||||
/* delete a volume */
|
||||
int volume_delete (const char* key);
|
||||
|
||||
#endif // _LIBMSL_M_SYSTEM_H
|
||||
|
||||
Reference in New Issue
Block a user