Lines Matching refs:seg_start
56 void *seg_start;
78 #define SEG_OFFSET(SEGP, ADDR) ((char *)(ADDR) - (char *)(SEGP->seg_start))
147 if (segp->seg_start == MAP_FAILED)
153 munmap(segp->seg_start, segp->seg_length);
157 shmdt(segp->seg_start);
165 segp->seg_start = MAP_FAILED;
278 segp->seg_start = memp;
411 segp->seg_start = memp;
447 segp->seg_start = shmat(segp->seg_shmid, NULL, 0);
448 if (segp->seg_start == MAP_FAILED) {
457 segp->seg_start, segp->seg_start + segp->seg_length - 1);
525 segp->seg_start = MAP_FAILED;
592 if (segp->seg_start != MAP_FAILED) {
595 segp->seg_start,
694 memp = (unsigned long *)(segp->seg_start + offset);
718 * segment_unmap() - unmap the specified segment, if any, from seg_start
719 * to seg_start+seg_lenth. Leave the segment in the
734 if (segp->seg_start == MAP_FAILED)
740 seg_start, segp->seg_length);
751 segp->seg_start = MAP_FAILED;
773 if (segp->seg_start != MAP_FAILED) {
830 if (segp->seg_start == MAP_FAILED) {
843 start = segp->seg_start + offset;
856 ret = mbind(segp->seg_start + offset, length, policy, nodemask->n,
893 if (segp->seg_start == MAP_FAILED) {
906 apage = segp->seg_start + offset;