Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[.joined/src/trunk]: .joined/src/sys/net sys/net: Document if_flags_set with ...
details: https://anonhg.NetBSD.org/.joined/src/rev/edf17e2033ea
branches: trunk
changeset: 359347:edf17e2033ea
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Dec 31 14:26:19 2021 +0000
description:
sys/net: Document if_flags_set with a comment.
diffstat:
sys/net/if.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r ba7dee30cb5a -r edf17e2033ea sys/net/if.c
--- a/sys/net/if.c Fri Dec 31 14:26:09 2021 +0000
+++ b/sys/net/if.c Fri Dec 31 14:26:19 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if.c,v 1.499 2021/12/31 14:25:58 riastradh Exp $ */
+/* $NetBSD: if.c,v 1.500 2021/12/31 14:26:19 riastradh Exp $ */
/*-
* Copyright (c) 1999, 2000, 2001, 2008 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.499 2021/12/31 14:25:58 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if.c,v 1.500 2021/12/31 14:26:19 riastradh Exp $");
#if defined(_KERNEL_OPT)
#include "opt_inet.h"
@@ -3832,6 +3832,15 @@
}
}
+/*
+ * if_flags_set(ifp, flags)
+ *
+ * Ask ifp to change ifp->if_flags to flags, as if with the
+ * SIOCSIFFLAGS ioctl command.
+ *
+ * May sleep. Caller must hold ifp->if_ioctl_lock, a.k.a
+ * IFNET_LOCK.
+ */
int
if_flags_set(ifnet_t *ifp, const u_short flags)
{
Home |
Main Index |
Thread Index |
Old Index