Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Dec 2002 19:12:16 -0700
From:      yiding_wang@agilent.com
To:        freebsd-scsi@freebsd.org
Subject:   Question on memory allocation
Message-ID:  <334DD5C2ADAB9245B60F213F49C5EBCD05D54F20@axcs03.cos.agilent.com>

next in thread | raw e-mail | index | archive | help
Hello Team,

I have some questions about memory allocation in FreeBSD device driver. I couldn't find answer either from man page or docs.

1, For the function malloc(), what does M_DEVBUF flag represent?
2, What is the syntax and argument for malloc() to allocate N byte of memory with M alignment requirement?
3, Can malloc be used for physical contiguous memory allocation?  If so, what is the syntax and argument?
4, If bus_dmamem_alloc() is the one for physical contiguous memory allocation, then what is the syntax and argument?  for getting alig
5, Is there any memory size limitation from both memory allocation function?

Any direction to source documents regarding these memory allocation function and vtop / ptov function pair are welcomes!

Many thanks!

Eddie

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?334DD5C2ADAB9245B60F213F49C5EBCD05D54F20>