Print this page
6152 use NULL dump segop as a shorthand for no-op
*** 71,81 ****
static int segnf_getprot(struct seg *seg, caddr_t addr,
size_t len, uint_t *protv);
static u_offset_t segnf_getoffset(struct seg *seg, caddr_t addr);
static int segnf_gettype(struct seg *seg, caddr_t addr);
static int segnf_getvp(struct seg *seg, caddr_t addr, struct vnode **vpp);
- static void segnf_dump(struct seg *seg);
static int segnf_pagelock(struct seg *seg, caddr_t addr, size_t len,
struct page ***ppp, enum lock_type type, enum seg_rw rw);
struct seg_ops segnf_ops = {
--- 71,80 ----
*** 98,108 ****
.getoffset = segnf_getoffset,
.gettype = segnf_gettype,
.getvp = segnf_getvp,
.advise = (int (*)(struct seg *, caddr_t, size_t, uint_t))
segnf_nop,
- .dump = segnf_dump,
.pagelock = segnf_pagelock,
};
/*
* vnode and page for the page of zeros we use for the nf mappings.
--- 97,106 ----
*** 444,461 ****
*vpp = &nfvp;
return (0);
}
- /*
- * segnf pages are not dumped, so we just return
- */
- /* ARGSUSED */
- static void
- segnf_dump(struct seg *seg)
- {}
-
/*ARGSUSED*/
static int
segnf_pagelock(struct seg *seg, caddr_t addr, size_t len,
struct page ***ppp, enum lock_type type, enum seg_rw rw)
{
--- 442,451 ----