Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107158659
D43027.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
695 B
Referenced Files
None
Subscribers
None
D43027.diff
View Options
Index: sys/compat/linuxkpi/common/include/linux/iosys-map.h
===================================================================
--- sys/compat/linuxkpi/common/include/linux/iosys-map.h
+++ sys/compat/linuxkpi/common/include/linux/iosys-map.h
@@ -46,6 +46,16 @@
dbm->vaddr += n;
}
+static inline void
+iosys_map_memset(struct iosys_map *dbm, size_t dbm_offset, int value,
+ size_t len)
+{
+ if (dbm->is_iomem)
+ memset_io(dbm->vaddr_iomem + dbm_offset, value, len);
+ else
+ memset(dbm->vaddr + dbm_offset, value, len);
+}
+
#if defined(LINUXKPI_VERSION) && LINUXKPI_VERSION >= 51801
static inline void
iosys_map_memcpy_to(struct iosys_map *dbm, size_t dbm_offset, const void *src,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jan 12, 12:46 AM (21 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15759362
Default Alt Text
D43027.diff (695 B)
Attached To
Mode
D43027: linuxkpi: Add `iosys_map_memset()`
Attached
Detach File
Event Timeline
Log In to Comment