File:  [MW Coherent from dump] / coherent / f / usr / man / KERNEL / getPhysMem
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:40 2019 UTC (7 years, 2 months ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

ggeettPPhhyyssMMeemm() -- Memory-Manipulation Routine

cchhaarr *
ggeettPPhhyyssMMeemm(_n_u_m_B_y_t_e_s)
iinntt _n_u_m_B_y_t_e_s;

When the  kernel starts  up, it reserves  a block of  physically contiguous
memory  (of size  PPHHYYSS_MMEEMM) for  one or  more device  drivers to  use.  Any
device  driver  can  request some  of  this  memory;  to  do so,  it  calls
ggeettPPhhyyssMMeemm()  from within  its  load routine.   _n_u_m_B_y_t_e_s  gives the  number
number of bytes it needs.

If it can meet the request, ggeettPPhhyyssMMeemm() returns the virtual address of the
start  of  the  region  allocated.   This  region  has  contiguous  virtual
addresses  within  kernel  data  space,  as  well  as  contiguous  physical
addresses.  If  it cannot grant  the request, ggeettPPhhyyssMMeemm()  returns 0.  Use
routine vvttoopp() to determine the physical address of the region.

_S_e_e _A_l_s_o
mmeemmoorryy-mmaanniippuullaattiioonn rroouuttiinneess, vvttoopp()

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.