hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/include/linux/kref.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * kref.h - library routines for handling generic reference counted objects
34 *
....@@ -7,9 +8,6 @@
78 * based on kobject.h which was:
89 * Copyright (C) 2002-2003 Patrick Mochel <mochel@osdl.org>
910 * Copyright (C) 2002-2003 Open Source Development Labs
10
- *
11
- * This file is released under the GPLv2.
12
- *
1311 */
1412
1513 #ifndef _KREF_H_
....@@ -53,10 +51,7 @@
5351 * @release: pointer to the function that will clean up the object when the
5452 * last reference to the object is released.
5553 * This pointer is required, and it is not acceptable to pass kfree
56
- * in as this function. If the caller does pass kfree to this
57
- * function, you will be publicly mocked mercilessly by the kref
58
- * maintainer, and anyone else who happens to notice it. You have
59
- * been warned.
54
+ * in as this function.
6055 *
6156 * Decrement the refcount, and if 0, call release().
6257 * Return 1 if the object was removed, otherwise return 0. Beware, if this