search for: is_dead

Displaying 5 results from an estimated 5 matches for "is_dead".

2009 Dec 30
1
lm() and factors appending
How for the love of god can I prevent the lm() function from padding on to my factor variables? I start out with 2 tables: Table1 123123 124351 ... 626773 Table2 Count,IS_DEAD,IS_BURNING 1231,T,F 4521,F,T ... 3321,T,T Everything looks fine when I import the data. then we get a oh_crap <- lm(table1 ~ Count + IS_DEAD + IS_BURNING, table2) Magically when I look at my oh_crap coefficents they get turned into Count, IS_DEADTRUE, IS_BURNINGTRUE I get it that it finds...
2005 Aug 30
4
Re: [Xen-changelog] New console transport and update xenconsoled.
...tic void buffer_advance(struct buffer *buffer, size_t size) >-{ >- size = MIN(size, buffer->size); >- memmove(buffer->data, buffer + size, buffer->size - size); >- buffer->size -= size; >-} >- > struct domain > { > int domid; >@@ -90,9 +58,74 @@ > bool is_dead; > struct buffer buffer; > struct domain *next; >+ unsigned long mfn; >+ int local_port; >+ int remote_port; >+ char *page; >+ int evtchn_fd; > }; > > static struct domain *dom_head; >+ >+struct ring_head >+{ >+ u32 cons; >+ u32 prod; >+ char buf[0...
2013 Jan 03
20
[PATCH] Switch to poll in xenconsoled's io loop.
...;buffer.size < d->buffer.max_capacity) { int evtchn_fd = xc_evtchn_fd(d->xce_handle); - FD_SET(evtchn_fd, &readfds); - max_fd = MAX(evtchn_fd, max_fd); + SET_FDS(evtchn_fd, POLLIN); } } if (d->master_fd != -1) { + short events = 0; if (!d->is_dead && ring_free_bytes(d)) - FD_SET(d->master_fd, &readfds); + events |= POLLIN; if (!buffer_empty(&d->buffer)) - FD_SET(d->master_fd, &writefds); - max_fd = MAX(d->master_fd, max_fd); + events |= POLLOUT; + + if (events) + SET_FDS(d->...
2013 Jan 10
10
[PATCH v2 1/2] xenconsoled: use grant references instead of map_foreign_range
...PROT_WRITE); + dom->ring_ref = -1; + } + if (!dom->interface) { + /* Fall back to xc_map_foreign_range */ dom->interface = xc_map_foreign_range( xc, dom->domid, getpagesize(), PROT_READ|PROT_WRITE, @@ -720,9 +744,7 @@ static void shutdown_domain(struct domain *d) { d->is_dead = true; watch_domain(d, false); - if (d->interface != NULL) - munmap(d->interface, getpagesize()); - d->interface = NULL; + domain_unmap_interface(d); if (d->xce_handle != NULL) xc_evtchn_close(d->xce_handle); d->xce_handle = NULL; @@ -730,7 +752,7 @@ static void shutdow...
2012 Dec 13
3
[PATCH] xenconsoled: use grant references instead of map_foreign_range
...PROT_WRITE); + dom->ring_ref = -1; + } + if (!dom->interface) { + /* Fall back to xc_map_foreign_range */ dom->interface = xc_map_foreign_range( xc, dom->domid, getpagesize(), PROT_READ|PROT_WRITE, @@ -720,9 +743,7 @@ static void shutdown_domain(struct domain *d) { d->is_dead = true; watch_domain(d, false); - if (d->interface != NULL) - munmap(d->interface, getpagesize()); - d->interface = NULL; + domain_unmap_interface(d); if (d->xce_handle != NULL) xc_evtchn_close(d->xce_handle); d->xce_handle = NULL; @@ -736,6 +757,13 @@ void enum_domains(...