Untitled
unknown
plain_text
4 years ago
765 B
6
Indexable
#include <linux/kernel.h>
#include <unistd.h>
struct folder_stat { //Statistic about current folder
long studentID;
struct folder_info folder; //Current folder
struct folder_info parent_folder; //Parent folder
struct folder_info last_access_child_folder; //Last access child folder
};
struct folder_info { //info about a single folder
char name[128]; //name of the current folder
mode_t permission; // permission mode
uid_t uid; // owner user ID
gid_t gid; // owner group ID
double size; // total size in Megabytes (1 MB = 1,000 kB)
time_t atime; // Last access time
};
SYSCALL_DEFINE2(get_folder_stat , char*, path , s t r u c t folder_stat *, stat) {
// TODO: implement your system call here
}Editor is loading...