Print this page
6149 use NULL capable segop as a shorthand for no-capabilities

@@ -181,11 +181,10 @@
 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.

@@ -209,11 +208,10 @@
         .advise         = segdev_advise,
         .dump           = segdev_dump,
         .pagelock       = segdev_pagelock,
         .setpagesize    = segdev_setpagesize,
         .getmemid       = segdev_getmemid,
-        .capable        = segdev_capable,
 };
 
 /*
  * Private segdev support routines
  */

@@ -4026,17 +4024,10 @@
         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)