sequencer.c (194990) | sequencer.c (274035) |
---|---|
1/*- 2 * Copyright (c) 2003 Mathew Kanner 3 * Copyright (c) 1993 Hannu Savolainen 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * SUCH DAMAGE. 26 */ 27 28/* 29 * The sequencer personality manager. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Mathew Kanner 3 * Copyright (c) 1993 Hannu Savolainen 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 16 unchanged lines hidden (view full) --- 25 * SUCH DAMAGE. 26 */ 27 28/* 29 * The sequencer personality manager. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/sound/midi/sequencer.c 194990 2009-06-25 18:46:30Z kib $"); | 33__FBSDID("$FreeBSD: head/sys/dev/sound/midi/sequencer.c 274035 2014-11-03 11:11:45Z bapt $"); |
34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/ioccom.h> 38 39#include <sys/filio.h> 40#include <sys/lock.h> 41#include <sys/sockio.h> --- 419 unchanged lines hidden (view full) --- 461 } 462 seq_processevent(scp, event); 463 } 464 465done: 466 cv_broadcast(&scp->th_cv); 467 mtx_unlock(&scp->seq_lock); 468 SEQ_DEBUG(2, printf("seq_eventthread finished\n")); | 34 35#include <sys/param.h> 36#include <sys/systm.h> 37#include <sys/ioccom.h> 38 39#include <sys/filio.h> 40#include <sys/lock.h> 41#include <sys/sockio.h> --- 419 unchanged lines hidden (view full) --- 461 } 462 seq_processevent(scp, event); 463 } 464 465done: 466 cv_broadcast(&scp->th_cv); 467 mtx_unlock(&scp->seq_lock); 468 SEQ_DEBUG(2, printf("seq_eventthread finished\n")); |
469#if __FreeBSD_version >= 800002 | |
470 kproc_exit(0); | 469 kproc_exit(0); |
471#else 472 mtx_lock(&Giant); 473 kthread_exit(0); 474#endif | |
475} 476 477/* 478 * seq_processevent: This maybe called by the event thread or the IOCTL 479 * handler for queued and out of band events respectively. 480 */ 481static int 482seq_processevent(struct seq_softc *scp, u_char *event) --- 99 unchanged lines hidden (view full) --- 582 583 if (scp->seqdev == NULL || scp->musicdev == NULL) 584 goto err; 585 /* 586 * TODO: Add to list of sequencers this module provides 587 */ 588 589 ret = | 470} 471 472/* 473 * seq_processevent: This maybe called by the event thread or the IOCTL 474 * handler for queued and out of band events respectively. 475 */ 476static int 477seq_processevent(struct seq_softc *scp, u_char *event) --- 99 unchanged lines hidden (view full) --- 577 578 if (scp->seqdev == NULL || scp->musicdev == NULL) 579 goto err; 580 /* 581 * TODO: Add to list of sequencers this module provides 582 */ 583 584 ret = |
590#if __FreeBSD_version >= 800002 | |
591 kproc_create | 585 kproc_create |
592#else 593 kthread_create 594#endif | |
595 (seq_eventthread, scp, NULL, RFHIGHPID, 0, 596 "sequencer %02d", scp->unit); 597 598 if (ret) 599 goto err; 600 601 scp->seqdev->si_drv1 = scp->musicdev->si_drv1 = scp; 602 --- 1502 unchanged lines hidden --- | 586 (seq_eventthread, scp, NULL, RFHIGHPID, 0, 587 "sequencer %02d", scp->unit); 588 589 if (ret) 590 goto err; 591 592 scp->seqdev->si_drv1 = scp->musicdev->si_drv1 = scp; 593 --- 1502 unchanged lines hidden --- |