Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107138937
D47038.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D47038.diff
View Options
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c
--- a/sys/kern/kern_proc.c
+++ b/sys/kern/kern_proc.c
@@ -38,6 +38,7 @@
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/bitstring.h>
+#include <sys/conf.h>
#include <sys/elf.h>
#include <sys/eventhandler.h>
#include <sys/exec.h>
@@ -2614,9 +2615,11 @@
struct ucred *cred;
struct vnode *vp;
struct vmspace *vm;
+ struct cdev *cdev;
+ struct cdevsw *csw;
vm_offset_t addr;
unsigned int last_timestamp;
- int error;
+ int error, ref;
key_t key;
unsigned short seq;
bool guard, super;
@@ -2714,6 +2717,19 @@
kve->kve_ref_count = obj->ref_count;
kve->kve_shadow_count = obj->shadow_count;
+ if (obj->type == OBJT_DEVICE ||
+ obj->type == OBJT_MGTDEVICE) {
+ cdev = obj->un_pager.devp.dev;
+ if (cdev != NULL) {
+ csw = dev_refthread(cdev, &ref);
+ if (csw != NULL) {
+ strlcpy(kve->kve_path,
+ cdev->si_name, sizeof(
+ kve->kve_path));
+ dev_relthread(cdev, ref);
+ }
+ }
+ }
VM_OBJECT_RUNLOCK(obj);
if ((lobj->flags & OBJ_SYSVSHM) != 0) {
kve->kve_flags |= KVME_FLAG_SYSVSHM;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 5:37 PM (19 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15756178
Default Alt Text
D47038.diff (1 KB)
Attached To
Mode
D47038: kinfo: report cdev names for mappings and vm objects
Attached
Detach File
Event Timeline
Log In to Comment