Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102692317
D35915.id109181.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
849 B
Referenced Files
None
Subscribers
None
D35915.id109181.diff
View Options
diff --git a/stand/libsa/stand.h b/stand/libsa/stand.h
--- a/stand/libsa/stand.h
+++ b/stand/libsa/stand.h
@@ -140,6 +140,8 @@
* Device switch
*/
#define DEV_NAMLEN 8 /* Length of name of device class */
+#define DEV_DEVLEN 128 /* Length of longest device instance name */
+struct devdesc;
struct devsw {
const char dv_name[DEV_NAMLEN];
int dv_type; /* opaque type constant */
@@ -157,6 +159,7 @@
int (*dv_ioctl)(struct open_file *f, u_long cmd, void *data);
int (*dv_print)(int verbose); /* print device information */
void (*dv_cleanup)(void);
+ char * (*dv_fmtdev)(struct devdesc *);
};
/*
@@ -177,6 +180,8 @@
void *d_opendata;
};
+char *devformat(struct devdesc *d);
+
struct open_file {
int f_flags; /* see F_* below */
struct devsw *f_dev; /* pointer to device operations */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 10:44 PM (14 h, 43 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14666212
Default Alt Text
D35915.id109181.diff (849 B)
Attached To
Mode
D35915: stand: Add dv_devfmt to return a string represenation of the device
Attached
Detach File
Event Timeline
Log In to Comment