예제 #1
0
/*
 * Close the keyboard.
 */
void
MWKbd_Close (void)
{
        uid_unregister_device (kbd_fd);
	uid_close_queue ();
	close (kbd_fd);
}
예제 #2
0
/*
 * Close the mouse device.
 */
static void
MWMou_Close (void)
{
        uid_unregister_device (mou_fd);
        uid_close_queue ();
#if RTEMS
	close (mou_fd);
#endif
}
예제 #3
0
파일: init.c 프로젝트: 0871087123/rtems
void close_it(void)
{
  int rc;

  printf( "uid_unregister_device() - OK\n" );
  rc = uid_unregister_device( Test_fd );
  rtems_test_assert( rc == 0 );

  puts( "close(/dev/mouse) - OK " );
  rc = close( Test_fd );
  rtems_test_assert( rc == 0 );
}
예제 #4
0
/* close and unregister device */
static int close_queue_and_unregister_device( int fd )
{
    uid_unregister_device( fd );
    return uid_close_queue();
}