The NetBSD Project

CVS log for src/sys/kern/sys_eventfd.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.9.4.1 / (download) - annotate - [select for diffs], Sun Nov 26 12:33:19 2023 UTC (2 months, 3 weeks ago) by bouyer
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2
Changes since 1.9: +6 -24 lines
Diff to previous 1.9 (colored) next main 1.10 (colored)

Pull up following revision(s) (requested by riastradh in ticket #468):
	sys/kern/sys_eventfd.c: revision 1.10
eventfd(2): Omit needless micro-optimization causing PR kern/57703.
Unfortunately, owing to PR kern/57705 and PR misc/57706, it isn't
convenient to flip the xfail switch on a test for this bug.  So we'll
do that separately.  (But I did verify that a rumpified version of
the test postd to PR kern/57703 failed without this change, and
passed with this change.)
PR kern/57703
XXX pullup-10

Revision 1.11 / (download) - annotate - [select for diffs], Sun Nov 19 17:16:00 2023 UTC (3 months ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +3 -5 lines
Diff to previous 1.10 (colored)

eventfd(2): Prune dead branch.

Fallout from PR kern/57703 fix.

XXX pullup-10

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 19 04:13:37 2023 UTC (3 months ago) by riastradh
Branch: MAIN
Changes since 1.9: +6 -24 lines
Diff to previous 1.9 (colored)

eventfd(2): Omit needless micro-optimization causing PR kern/57703.

Unfortunately, owing to PR kern/57705 and PR misc/57706, it isn't
convenient to flip the xfail switch on a test for this bug.  So we'll
do that separately.  (But I did verify that a rumpified version of
the test postd to PR kern/57703 failed without this change, and
passed with this change.)

PR kern/57703

XXX pullup-10

Revision 1.9 / (download) - annotate - [select for diffs], Thu Feb 17 16:28:29 2022 UTC (2 years ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, netbsd-10-0-RC1, bouyer-sunxi-drm-base, bouyer-sunxi-drm
Branch point for: netbsd-10
Changes since 1.8: +36 -3 lines
Diff to previous 1.8 (colored)

Implement eventfd_ioctl() and handle FIONBIO so that fcntl(O_NONBLOCK)
works.  While here, also implement FIONREAD and FIONWRITE, and document
why we don't implement FIONSPACE.

Also implement FIONBIO and FIONREAD for in timerfd_ioctl() (for the same
reason).

PR kern/56718

Revision 1.8 / (download) - annotate - [select for diffs], Wed Nov 24 16:35:33 2021 UTC (2 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.7: +6 -17 lines
Diff to previous 1.7 (colored)

Fix "restart" semantics -- restart is terminal, so don't clear the
condition when previous waiters have drained.  ("restart" is a bad
name for that this function does, fwiw.)

This should address a kernel assertion failure reported by Chavdar Ivanov
on current-users.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Sep 27 00:40:49 2021 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.6: +8 -4 lines
Diff to previous 1.6 (colored)

Consistently reference kn->kn_data only within the lock perimeter in
the filtops f_event() callback.

Revision 1.6 / (download) - annotate - [select for diffs], Sun Sep 26 03:42:54 2021 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.5: +4 -4 lines
Diff to previous 1.5 (colored)

eventfd and timerfd have MPSAFE kq filterops.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Sep 26 01:16:10 2021 UTC (2 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 20 14:30:05 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

eventfd_destroy(): Add missing kmem_free().

Revision 1.3 / (download) - annotate - [select for diffs], Mon Sep 20 11:12:35 2021 UTC (2 years, 5 months ago) by skrll
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

KNF, i.e. #include <sys/param.h> then #include <sys/types.h>

Fixes builds

Revision 1.2 / (download) - annotate - [select for diffs], Sun Sep 19 15:51:27 2021 UTC (2 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.1: +579 -0 lines
Diff to previous 1.1 (colored)

Add native implementations of eventfd(2) and timerfd(2), compatible with
the Linux interfaces of the same name.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 16:00:51 2020 UTC (3 years, 2 months ago) by thorpej
Branch: thorpej-futex
Changes since 1.1: +583 -0 lines
Diff to previous 1.1 (colored) next main 1.2 (colored)

Native implementation of the Linux eventfd(2) API.

Revision 1.1, Mon Dec 14 16:00:51 2020 UTC (3 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-futex-base, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: thorpej-futex
FILE REMOVED

file sys_eventfd.c was initially added on branch thorpej-futex.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>