Module Name: src Committed By: riastradh Date: Mon Aug 27 15:28:27 UTC 2018
Modified Files: src/sys/external/bsd/drm2/linux: linux_reservation.c Log Message: Expand docstring for reservation_object_poll. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/external/bsd/drm2/linux/linux_reservation.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/linux/linux_reservation.c diff -u src/sys/external/bsd/drm2/linux/linux_reservation.c:1.9 src/sys/external/bsd/drm2/linux/linux_reservation.c:1.10 --- src/sys/external/bsd/drm2/linux/linux_reservation.c:1.9 Mon Aug 27 15:28:16 2018 +++ src/sys/external/bsd/drm2/linux/linux_reservation.c Mon Aug 27 15:28:27 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: linux_reservation.c,v 1.9 2018/08/27 15:28:16 riastradh Exp $ */ +/* $NetBSD: linux_reservation.c,v 1.10 2018/08/27 15:28:27 riastradh Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.9 2018/08/27 15:28:16 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.10 2018/08/27 15:28:27 riastradh Exp $"); #include <sys/param.h> #include <sys/poll.h> @@ -851,8 +851,15 @@ reservation_poll_cb(struct fence *fence, /* * reservation_object_poll(robj, events, rpoll) * - * POLLOUT wait for all fences shared and exclusive - * POLLIN wait for the exclusive fence + * Poll for reservation object events using the reservation poll + * state in rpoll: + * + * - POLLOUT wait for all fences shared and exclusive + * - POLLIN wait for the exclusive fence + * + * Return the subset of events in events that are ready. If any + * are requested but not ready, arrange to be notified with + * selnotify when they are. */ int reservation_object_poll(struct reservation_object *robj, int events,