Skip to content

Instantly share code, notes, and snippets.

@chiehmin
Created August 27, 2015 05:52
Show Gist options
  • Save chiehmin/1d463a0bf4b180cedaeb to your computer and use it in GitHub Desktop.
Save chiehmin/1d463a0bf4b180cedaeb to your computer and use it in GitHub Desktop.
2795 while ((dom->item_in + 1) % SYSCALL_SIZE == dom->item_out && (timeout-- > 0))
2796 {
2797 udelay(100);
2798 }
2799
2800 spin_lock(&dom->syscall_lock);
2801 if ((dom->item_in + 1) % SYSCALL_SIZE == dom->item_out)
2802 {
2803 printk("Domain buffer full !!!!\n");
2804 goto out;
2805 }
2806 else
2807 {
2808 goto start_collect;
2809 }
2810 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment