watch_arg: greater_flag -> above_threshold

This commit is contained in:
zy
2023-11-27 04:21:47 -05:00
parent a56fa77dc8
commit 7e3b4ded0c
9 changed files with 202 additions and 10 deletions

View File

@@ -42,3 +42,17 @@ int cancel_watch() {
file_desc = -1;
return 0;
}
void init_watch_arg(watch_arg *wg, char *name, void *ptr,
int length_byte, long long threshold,
unsigned char unsigned_flag,
unsigned char above_threshold, unsigned long time_ns){
wg->task_id = getpid();
strncpy(wg->name, name, (MAX_NAME_LEN + 1));
wg->ptr = ptr;
wg->length_byte = length_byte;
wg->threshold = threshold;
wg->unsigned_flag = unsigned_flag;
wg->above_threshold = above_threshold;
wg->time_ns = time_ns;
}