Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F139400244
D50988.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
545 B
Referenced Files
None
Subscribers
None
D50988.diff
View Options
diff --git a/sys/compat/linuxkpi/common/include/linux/idr.h b/sys/compat/linuxkpi/common/include/linux/idr.h
--- a/sys/compat/linuxkpi/common/include/linux/idr.h
+++ b/sys/compat/linuxkpi/common/include/linux/idr.h
@@ -147,6 +147,13 @@
return (ida_simple_get(ida, 0, max, gfp));
}
+static inline int
+ida_alloc_range(struct ida *ida, unsigned int min, unsigned int max, gfp_t gfp)
+{
+
+ return (ida_simple_get(ida, min, max, gfp));
+}
+
static inline int ida_alloc(struct ida *ida, gfp_t gfp)
{
return (ida_alloc_max(ida, ~0u, gfp));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 12, 4:48 PM (12 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26903859
Default Alt Text
D50988.diff (545 B)
Attached To
Mode
D50988: linuxkpi: Add `ida_alloc_range()`
Attached
Detach File
Event Timeline
Log In to Comment