Function fanotify_mark [src]

Prototype

pub fn fanotify_mark( fd: fd_t, flags: fanotify.MarkFlags, mask: fanotify.MarkMask, dirfd: fd_t, pathname: ?[*:0]const u8, ) usize

Parameters

fd: fd_tflags: fanotify.MarkFlagsmask: fanotify.MarkMaskdirfd: fd_tpathname: ?[*:0]const u8

Source

pub fn fanotify_mark( fd: fd_t, flags: fanotify.MarkFlags, mask: fanotify.MarkMask, dirfd: fd_t, pathname: ?[*:0]const u8, ) usize { if (usize_bits < 64) { const mask_halves = splitValue64(@bitCast(mask)); return syscall6( .fanotify_mark, @bitCast(@as(isize, fd)), @as(u32, @bitCast(flags)), mask_halves[0], mask_halves[1], @bitCast(@as(isize, dirfd)), @intFromPtr(pathname), ); } else { return syscall5( .fanotify_mark, @bitCast(@as(isize, fd)), @as(u32, @bitCast(flags)), @bitCast(mask), @bitCast(@as(isize, dirfd)), @intFromPtr(pathname), ); } }