Print this page
use NULL dump segop as a shorthand for no-op
Instead of forcing every segment driver to implement a dummy function that
does nothing, handle NULL dump segop function pointer as a no-op shorthand.
@@ -176,11 +176,10 @@
static int segdev_getprot(struct seg *, caddr_t, size_t, uint_t *);
static u_offset_t segdev_getoffset(struct seg *, caddr_t);
static int segdev_gettype(struct seg *, caddr_t);
static int segdev_getvp(struct seg *, caddr_t, struct vnode **);
static int segdev_advise(struct seg *, caddr_t, size_t, uint_t);
-static void segdev_dump(struct seg *);
static int segdev_pagelock(struct seg *, caddr_t, size_t,
struct page ***, enum lock_type, enum seg_rw);
static int segdev_getmemid(struct seg *, caddr_t, memid_t *);
/*
@@ -203,11 +202,10 @@
.getprot = segdev_getprot,
.getoffset = segdev_getoffset,
.gettype = segdev_gettype,
.getvp = segdev_getvp,
.advise = segdev_advise,
- .dump = segdev_dump,
.pagelock = segdev_pagelock,
.getmemid = segdev_getmemid,
};
/*
@@ -2371,18 +2369,10 @@
return (0);
}
/*
- * segdev pages are not dumped, so we just return
- */
-/*ARGSUSED*/
-static void
-segdev_dump(struct seg *seg)
-{}
-
-/*
* ddi_segmap_setup: Used by drivers who wish specify mapping attributes
* for a segment. Called from a drivers segmap(9E)
* routine.
*/
/*ARGSUSED*/