VMEM_ADD(9F) Kernel Functions for Drivers VMEM_ADD(9F) NNAAMMEE vvmmeemm__aadddd - add spans to a vmem arena SSYYNNOOPPSSIISS ##iinncclluuddee <> _v_o_i_d _* vvmmeemm__aadddd(_v_m_e_m___t _*_v_m_p, _v_o_i_d _*_v_a_d_d_r, _s_i_z_e___t _s_i_z_e, _i_n_t _v_m_f_l_a_g); IINNTTEERRFFAACCEE LLEEVVEELL illumos DDI specific PPAARRAAMMEETTEERRSS _v_m_p The vmem arena to which the span should be added. _v_a_d_d_r The base address of the span to add. _s_i_z_e The size of the span to add _v_m_f_l_a_g Flags affecting the allocation of the span to add. DDEESSCCRRIIPPTTIIOONN The vvmmeemm__aadddd() function adds _s_i_z_e bytes starting at _v_a_d_d_r to a vmem arena from which future calls to vvmmeemm__aalllloocc() may allocate. VM_SLEEP or VM_NOSLEEP must be specified, and indicate whether the addition may block. CCOONNTTEEXXTT This function can be called from either user or kernel context. If the VM_NOSLEEP flag is specified, it may also be called from interrupt context. RREETTUURRNN VVAALLUUEESS Upon success vvmmeemm__aadddd() returns _v_a_d_d_r. On failure, NULL is returned. SSEEEE AALLSSOO vmem(9), vmem_alloc(9F), vmem_create(9F) illumos January 18, 2017 illumos