Print this page
6154 const-ify segment ops structures


 110         proc_t *dp_proc;                /* proc ptr for resource control */
 111 };
 112 
 113 #ifdef _KERNEL
 114 
 115 /*
 116  * Mappings of /dev/null come from segdev and have no mapping type.
 117  */
 118 
 119 #define SEG_IS_DEVNULL_MAPPING(seg)     \
 120         ((seg)->s_ops == &segdev_ops &&  \
 121         ((segop_gettype((seg), (seg)->s_base) & \
 122             (MAP_SHARED | MAP_PRIVATE)) == 0))
 123 
 124 extern void segdev_init(void);
 125 
 126 extern int segdev_create(struct seg *, void *);
 127 
 128 extern int segdev_copyto(struct seg *, caddr_t, const void *, void *, size_t);
 129 extern int segdev_copyfrom(struct seg *, caddr_t, const void *, void *, size_t);
 130 extern struct seg_ops segdev_ops;
 131 
 132 #endif  /* _KERNEL */
 133 
 134 #ifdef  __cplusplus
 135 }
 136 #endif
 137 
 138 #endif  /* _VM_SEG_DEV_H */


 110         proc_t *dp_proc;                /* proc ptr for resource control */
 111 };
 112 
 113 #ifdef _KERNEL
 114 
 115 /*
 116  * Mappings of /dev/null come from segdev and have no mapping type.
 117  */
 118 
 119 #define SEG_IS_DEVNULL_MAPPING(seg)     \
 120         ((seg)->s_ops == &segdev_ops &&  \
 121         ((segop_gettype((seg), (seg)->s_base) & \
 122             (MAP_SHARED | MAP_PRIVATE)) == 0))
 123 
 124 extern void segdev_init(void);
 125 
 126 extern int segdev_create(struct seg *, void *);
 127 
 128 extern int segdev_copyto(struct seg *, caddr_t, const void *, void *, size_t);
 129 extern int segdev_copyfrom(struct seg *, caddr_t, const void *, void *, size_t);
 130 extern const struct seg_ops segdev_ops;
 131 
 132 #endif  /* _KERNEL */
 133 
 134 #ifdef  __cplusplus
 135 }
 136 #endif
 137 
 138 #endif  /* _VM_SEG_DEV_H */