From: marconi@lncc.br Subject: Using the C library Date: Fri, 18 Jun 2004 16:21:41 -0300 Sender: xen-devel-admin@lists.sourceforge.net Message-ID: <1087586501.40d340c598938@webmail.lncc.br> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Errors-To: xen-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: xen-devel@lists.sourceforge.net List-Id: xen-devel@lists.xenproject.org Hi, I want to start a domain from my C program. But it's not very clear how t= o do=20 so. I figured out some things, so far I got: xc_interface_open xc_domain_create xc_linux_build But from here, I must define the partitions, and the network. And then st= art the=20 domain, right? But, how? :) I want to make /dev/hda3 available read-only as /dev/hda1. And /dev/hda5=20 available rw as /dev/hda2. In the vbd structures, the device is an unsign= ed=20 short. Should I shift the device major 8 bits, and add the minor? And about the network, simply setting the parameters in the cmdline=20 (xc_linux_build) will do the job, or do I have to do something else? If there is a place to get C examples, will be of great help. Thanks, Marconi. ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/ ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND