Print this page
6149 use NULL capable segop as a shorthand for no-capabilities
*** 181,191 ****
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_setpagesize(struct seg *, caddr_t, size_t, uint_t);
static int segdev_getmemid(struct seg *, caddr_t, memid_t *);
- static int segdev_capable(struct seg *, segcapability_t);
/*
* XXX this struct is used by rootnex_map_fault to identify
* the segment it has been passed. So if you make it
* "static" you'll need to fix rootnex_map_fault.
--- 181,190 ----
*** 209,219 ****
.advise = segdev_advise,
.dump = segdev_dump,
.pagelock = segdev_pagelock,
.setpagesize = segdev_setpagesize,
.getmemid = segdev_getmemid,
- .capable = segdev_capable,
};
/*
* Private segdev support routines
*/
--- 208,217 ----
*** 4026,4042 ****
memidp->val[0] = (uintptr_t)VTOCVP(sdp->vp);
memidp->val[1] = sdp->offset + (uintptr_t)(addr - seg->s_base);
return (0);
}
- /*ARGSUSED*/
- static int
- segdev_capable(struct seg *seg, segcapability_t capability)
- {
- return (0);
- }
-
/*
* ddi_umem_alloc() non-pageable quantum cache max size.
* This is just a SWAG.
*/
#define DEVMAP_UMEM_QUANTUM (8*PAGESIZE)
--- 4024,4033 ----