[lkml]   [2006]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Subjectkvm_create() (was Re: [PATCH 0/7] KVM: Kernel-based Virtual Machine)
    I don't have much clue what the context of this is, but one chunk caught
    my eye:

    On Sat, Oct 21, 2006 at 06:16:27PM +0200, Arnd Bergmann wrote:
    > Your example above could translate to something like:
    > int kvm_fd = kvm_create("/kvm/my_vcpu")
    > int mem_fd = openat(kvm_fd, "mem", O_RDWR);

    Based just on this snippet, it seems to me that kvm_create() could be
    open("/kvm/my_vcpu", O_CREAT | O_EXCL | O_DIRECTORY, 0777);

    (Which currently seems to silently mask out O_DIRECTORY, but seems to me
    should be a synonym for mkdir().)

    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-10-24 23:41    [W:0.021 / U:132.404 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site