summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/vfs/BUILD
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2020-01-28 13:10:41 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-28 13:11:43 -0800
commit34fbd8446c386fb0136dad31ab6b173f17049a58 (patch)
treee7423ae64e0d3216863270ab0bd46a29970533b3 /pkg/sentry/vfs/BUILD
parentd99329e58492ef91b44a0bac346f757e8af2a7ec (diff)
Add VFS2 support for epoll.
PiperOrigin-RevId: 291997879
Diffstat (limited to 'pkg/sentry/vfs/BUILD')
-rw-r--r--pkg/sentry/vfs/BUILD15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkg/sentry/vfs/BUILD b/pkg/sentry/vfs/BUILD
index 33516e6f7..ced9d07b1 100644
--- a/pkg/sentry/vfs/BUILD
+++ b/pkg/sentry/vfs/BUILD
@@ -1,7 +1,20 @@
load("//tools:defs.bzl", "go_library", "go_test")
+load("//tools/go_generics:defs.bzl", "go_template_instance")
licenses(["notice"])
+go_template_instance(
+ name = "epoll_interest_list",
+ out = "epoll_interest_list.go",
+ package = "vfs",
+ prefix = "epollInterest",
+ template = "//pkg/ilist:generic_list",
+ types = {
+ "Element": "*epollInterest",
+ "Linker": "*epollInterest",
+ },
+)
+
go_library(
name = "vfs",
srcs = [
@@ -10,6 +23,8 @@ go_library(
"debug.go",
"dentry.go",
"device.go",
+ "epoll.go",
+ "epoll_interest_list.go",
"file_description.go",
"file_description_impl_util.go",
"filesystem.go",