Print this page
7127  remove -Wno-missing-braces from Makefile.uts


2948                 h->rdc_bufh.sb_error = rc;
2949 
2950         return (rc);
2951 }
2952 
2953 
2954 /*
2955  * _rdc_trksize
2956  *
2957  * only needs to happen on local node.
2958  */
2959 
2960 static int
2961 _rdc_trksize(rdc_fd_t *rfd, nsc_size_t trksize)
2962 {
2963         return (nsc_set_trksize(RDC_FD(rfd), trksize));
2964 }
2965 
2966 
2967 static nsc_def_t _rdc_fd_def[] = {
2968         "Attach",       (uintptr_t)_rdc_attach_fd,      0,
2969         "Pinned",       (uintptr_t)_rdc_pinned,         0,
2970         "Unpinned",     (uintptr_t)_rdc_unpinned,       0,
2971         0,              0,                              0
2972 };
2973 
2974 
2975 static nsc_def_t _rdc_io_def[] = {
2976         "Open",         (uintptr_t)_rdc_openc,          0,
2977         "Close",        (uintptr_t)_rdc_close,          0,
2978         "Attach",       (uintptr_t)_rdc_attach,         0,
2979         "Detach",       (uintptr_t)_rdc_detach,         0,
2980         "AllocHandle",  (uintptr_t)_rdc_alloc_handle,   0,
2981         "FreeHandle",   (uintptr_t)_rdc_free_handle,    0,
2982         "AllocBuf",     (uintptr_t)_rdc_alloc_buf,      0,
2983         "FreeBuf",      (uintptr_t)_rdc_free_buf,       0,
2984         "GetPinned",    (uintptr_t)_rdc_get_pinned,     0,
2985         "Discard",      (uintptr_t)_rdc_discard_pinned, 0,
2986         "PartSize",     (uintptr_t)_rdc_partsize,       0,
2987         "MaxFbas",      (uintptr_t)_rdc_maxfbas,        0,
2988         "Control",      (uintptr_t)_rdc_control,        0,
2989         "Read",         (uintptr_t)_rdc_read,           0,
2990         "Write",        (uintptr_t)_rdc_write,          0,
2991         "Zero",         (uintptr_t)_rdc_zero,           0,
2992         "Uncommit",     (uintptr_t)_rdc_uncommit,       0,
2993         "TrackSize",    (uintptr_t)_rdc_trksize,        0,
2994         "Provide",      0,                              0,
2995         0,              0,                              0
2996 };
2997 
2998 static nsc_def_t _rdc_ior_def[] = {
2999         "Open",         (uintptr_t)_rdc_openr,          0,
3000         "Close",        (uintptr_t)_rdc_close,          0,
3001         "Attach",       (uintptr_t)_rdc_attach,         0,
3002         "Detach",       (uintptr_t)_rdc_detach,         0,
3003         "AllocHandle",  (uintptr_t)_rdc_alloc_handle,   0,
3004         "FreeHandle",   (uintptr_t)_rdc_free_handle,    0,
3005         "AllocBuf",     (uintptr_t)_rdc_alloc_buf,      0,
3006         "FreeBuf",      (uintptr_t)_rdc_free_buf,       0,
3007         "GetPinned",    (uintptr_t)_rdc_get_pinned,     0,
3008         "Discard",      (uintptr_t)_rdc_discard_pinned, 0,
3009         "PartSize",     (uintptr_t)_rdc_partsize,       0,
3010         "MaxFbas",      (uintptr_t)_rdc_maxfbas,        0,
3011         "Control",      (uintptr_t)_rdc_control,        0,
3012         "Read",         (uintptr_t)_rdc_read,           0,
3013         "Write",        (uintptr_t)_rdc_write,          0,
3014         "Zero",         (uintptr_t)_rdc_zero,           0,
3015         "Uncommit",     (uintptr_t)_rdc_uncommit,       0,
3016         "TrackSize",    (uintptr_t)_rdc_trksize,        0,
3017         "Provide",      0,                              0,
3018         0,              0,                              0
3019 };


2948                 h->rdc_bufh.sb_error = rc;
2949 
2950         return (rc);
2951 }
2952 
2953 
2954 /*
2955  * _rdc_trksize
2956  *
2957  * only needs to happen on local node.
2958  */
2959 
2960 static int
2961 _rdc_trksize(rdc_fd_t *rfd, nsc_size_t trksize)
2962 {
2963         return (nsc_set_trksize(RDC_FD(rfd), trksize));
2964 }
2965 
2966 
2967 static nsc_def_t _rdc_fd_def[] = {
2968         { "Attach",     (uintptr_t)_rdc_attach_fd,      0 },
2969         { "Pinned",     (uintptr_t)_rdc_pinned,         0 },
2970         { "Unpinned",   (uintptr_t)_rdc_unpinned,       0 },
2971         { NULL,         (uintptr_t)NULL,                0 }
2972 };
2973 
2974 
2975 static nsc_def_t _rdc_io_def[] = {
2976         { "Open",       (uintptr_t)_rdc_openc,          0 },
2977         { "Close",      (uintptr_t)_rdc_close,          0 },
2978         { "Attach",     (uintptr_t)_rdc_attach,         0 },
2979         { "Detach",     (uintptr_t)_rdc_detach,         0 },
2980         { "AllocHandle", (uintptr_t)_rdc_alloc_handle,  0 },
2981         { "FreeHandle", (uintptr_t)_rdc_free_handle,    0 },
2982         { "AllocBuf",   (uintptr_t)_rdc_alloc_buf,      0 },
2983         { "FreeBuf",    (uintptr_t)_rdc_free_buf,       0 },
2984         { "GetPinned",  (uintptr_t)_rdc_get_pinned,     0 },
2985         { "Discard",    (uintptr_t)_rdc_discard_pinned, 0 },
2986         { "PartSize",   (uintptr_t)_rdc_partsize,       0 },
2987         { "MaxFbas",    (uintptr_t)_rdc_maxfbas,        0 },
2988         { "Control",    (uintptr_t)_rdc_control,        0 },
2989         { "Read",       (uintptr_t)_rdc_read,           0 },
2990         { "Write",      (uintptr_t)_rdc_write,          0 },
2991         { "Zero",       (uintptr_t)_rdc_zero,           0 },
2992         { "Uncommit",   (uintptr_t)_rdc_uncommit,       0 },
2993         { "TrackSize",  (uintptr_t)_rdc_trksize,        0 },
2994         { "Provide",    (uintptr_t)NULL,                0 },
2995         { NULL,         (uintptr_t)NULL,                0 }
2996 };
2997 
2998 static nsc_def_t _rdc_ior_def[] = {
2999         { "Open",       (uintptr_t)_rdc_openr,          0 },
3000         { "Close",      (uintptr_t)_rdc_close,          0 },
3001         { "Attach",     (uintptr_t)_rdc_attach,         0 },
3002         { "Detach",     (uintptr_t)_rdc_detach,         0 },
3003         { "AllocHandle", (uintptr_t)_rdc_alloc_handle,  0 },
3004         { "FreeHandle", (uintptr_t)_rdc_free_handle,    0 },
3005         { "AllocBuf",   (uintptr_t)_rdc_alloc_buf,      0 },
3006         { "FreeBuf",    (uintptr_t)_rdc_free_buf,       0 },
3007         { "GetPinned",  (uintptr_t)_rdc_get_pinned,     0 },
3008         { "Discard",    (uintptr_t)_rdc_discard_pinned, 0 },
3009         { "PartSize",   (uintptr_t)_rdc_partsize,       0 },
3010         { "MaxFbas",    (uintptr_t)_rdc_maxfbas,        0 },
3011         { "Control",    (uintptr_t)_rdc_control,        0 },
3012         { "Read",       (uintptr_t)_rdc_read,           0 },
3013         { "Write",      (uintptr_t)_rdc_write,          0 },
3014         { "Zero",       (uintptr_t)_rdc_zero,           0 },
3015         { "Uncommit",   (uintptr_t)_rdc_uncommit,       0 },
3016         { "TrackSize",  (uintptr_t)_rdc_trksize,        0 },
3017         { "Provide",    (uintptr_t)NULL,                0 },
3018         { NULL,         (uintptr_t)NULL,                0 }
3019 };