home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / catD / kern_malloc.z / kern_malloc
Encoding:
Text File  |  1998-10-30  |  2.4 KB  |  67 lines

  1.  
  2.  
  3.  
  4. kkkkeeeerrrrnnnn____mmmmaaaalllllllloooocccc((((DDDD3333XXXX))))                                              kkkkeeeerrrrnnnn____mmmmaaaalllllllloooocccc((((DDDD3333XXXX))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _kkkk_eeee_rrrr_nnnn______mmmm_aaaa_llll_llll_oooo_cccc - allocate kernel virtual memory
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _""""_ssss_yyyy_ssss_////_tttt_yyyy_pppp_eeee_ssss_...._hhhh_""""
  13.  
  14.      _vvvv_oooo_iiii_dddd _****_kkkk_eeee_rrrr_nnnn______mmmm_aaaa_llll_llll_oooo_cccc_((((_iiii_nnnn_tttt _n_u_m__b_y_t_e_s_))))_;;;;
  15.  
  16. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  17.      _kkkk_eeee_rrrr_nnnn______mmmm_aaaa_llll_llll_oooo_cccc allocates _n_u_m__b_y_t_e_s of kernel virtual memory. If necessary,
  18.      it sleeps until the entire requested memory is available. Therefore, do
  19.      not call this function from an interrupt routine. Memory is not
  20.      physically contiguous.
  21.  
  22.    RRRReeeettttuuuurrrrnnnn VVVVaaaalllluuuueeeessss
  23.      Returns a pointer to the requested memory.
  24.  
  25.    SSSSeeeeeeee AAAAllllssssoooo
  26.      _kkkk_eeee_rrrr_nnnn______cccc_aaaa_llll_llll_oooo_cccc(D3X), _kkkk_eeee_rrrr_nnnn______ffff_rrrr_eeee_eeee(D3X), _kkkk_mmmm_eeee_mmmm______aaaa_llll_llll_oooo_cccc(D3)
  27.  
  28.    NNNNooootttteeee
  29.      Drivers that use DMA should use _kkkk_mmmm_eeee_mmmm______aaaa_llll_llll_oooo_cccc(D3) to allocate buffers for
  30.      DMA and free that memory with _kkkk_mmmm_eeee_mmmm______ffff_rrrr_eeee_eeee(D3). For a discussion, see
  31.      _kkkk_mmmm_eeee_mmmm______aaaa_llll_llll_oooo_cccc(D3).
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.