github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/sentry/kernel/eventfd/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "eventfd", 7 srcs = ["eventfd.go"], 8 visibility = ["//pkg/sentry:internal"], 9 deps = [ 10 "//pkg/abi/linux", 11 "//pkg/context", 12 "//pkg/fdnotifier", 13 "//pkg/hostarch", 14 "//pkg/sentry/fs", 15 "//pkg/sentry/fs/anon", 16 "//pkg/sentry/fs/fsutil", 17 "//pkg/sync", 18 "//pkg/syserror", 19 "//pkg/usermem", 20 "//pkg/waiter", 21 "@org_golang_x_sys//unix:go_default_library", 22 ], 23 ) 24 25 go_test( 26 name = "eventfd_test", 27 size = "small", 28 srcs = ["eventfd_test.go"], 29 library = ":eventfd", 30 deps = [ 31 "//pkg/sentry/contexttest", 32 "//pkg/usermem", 33 "//pkg/waiter", 34 ], 35 )