DevinLeamy commented on code in PR #511:
URL: https://github.com/apache/mesos/pull/511#discussion_r1520400858
##########
src/linux/ebpf.cpp:
##########
@@ -99,6 +99,48 @@ Try<int> load(const Program& program)
return *fd;
}
+
+// Detach an eBPF program from a target (AKA path) by its attachment type
+// and program id. Returns Nothing() on success or if no program is found.
+Try<Nothing> detach(uint32_t attach_type, int program_id, const string& target)
+{
+ Try<int> target_fd = os::open(target, O_DIRECTORY | O_RDONLY | O_CLOEXEC);
Review Comment:
Closed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]