易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux内核DRM实现分析——基于i915

1  接口
     我们先看看i915_drv.c里面申明的driver变量:
static struct drm_driver driver = {
 /* don't use mtrr's here, the Xserver or user space app should
  * deal with them for intel hardware.
  */
 .driver_features =
     DRIVER_USE_AGP | DRIVER_REQUIRE_AGP | /* DRIVER_USE_MTRR |*/
     DRIVER_HAVE_IRQ | DRIVER_IRQ_SHARED | DRIVER_GEM,
 .load = i915_driver_load,
 .unload = i915_driver_unload,
 .open = i915_driver_open,
 .lastclose = i915_driver_lastclose,
 .preclose = i915_driver_preclose,
 .postclose = i915_driver_postclose,
 .suspend = i915_suspend,
 .resume = i915_resume,
 .device_is_agp = i915_driver_device_is_agp,
 .enable_vblank = i915_enable_vblank,
 .disable_vblank = i915_disable_vblank,
 .irq_preinstall = i915_driver_irq_preinstall,
 .irq_postinstall = i915_driver_irq_postinstall,
 .irq_uninstall = i915_driver_irq_uninstall,
 .irq_handler = i915_driver_irq_handler,
 .reclaim_buffers = drm_core_reclaim_buffers,
 .get_map_ofs = drm_core_get_map_ofs,
 .get_reg_ofs = drm_core_get_reg_ofs,
 .master_create = i915_master_create,
 .master_destroy = i915_master_destroy,
#if defined(CONFIG_DEBUG_FS)
 .debugfs_init = i915_gem_debugfs_init,
 .debugfs_cleanup = i915_gem_debugfs_cleanup,
#endif
 .gem_init_object = i915_gem_init_object,
 .gem_free_object = i915_gem_free_object,
 .gem_vm_ops = &i915_gem_vm_ops,
 .ioctls = i915_ioctls,
 .fops = {
   .owner = THIS_MODULE,
   .open = drm_open,
   .release = drm_release,
   .ioctl = drm_ioctl,
   .mmap = drm_gem_mmap,
   .poll = drm_poll,
   .fasync = drm_fasync,
#ifdef CONFIG_COMPAT
   .compat_ioctl = i915_compat_ioctl,
#endif
 },
 .pci_driver = {
   .name


相关文档:

Linux会比BSD更受到人们的欢迎的原因


Linux 是出现约在 BSD 官司缠身、以及 Internet 开始风行之际.Linux 的开发者及爱好者正好能透过 Internet实时得发布新闻、发表新点子、提问讨论、递送程序代码及进行错误回报,这种藉由 Internet 的分布式合作方式带给Linux惊人的活力和无限的生命力,而经由 Internet 所带来的这种活力和生命力正是 Linux 长久以来能和 BS ......

Linux Kernel in a Nutshel

Linux Kernel in a Nutshell
By Greg Kroah-Hartman
...............................................
Publisher: O'Reilly
Pub Date: December 01, 2006
ISBN-10: 0-596-10079-5
ISBN-13: 978-0-596-10079-7
Pages: 352
Written by a leading developer and maintainer of the Linux kernel,
Linux Kern ......

Linux网卡驱动程序编写

Linux网卡驱动程序编写
[摘自 LinuxAID]
工作需要写了我们公司一块网卡的Linux驱动程序。经历一个从无到有的过程,深感技术交流的重要。Linux作为挑战微软垄断的强有力武器,日益受到大家的喜爱。真希望她能在中国迅速成长。把程序文档贴出来,希望和大家探讨Linux技术和应用,促进Linux在中国的普及。
Linux操作系统网 ......

linux修改主机名的方法

linux修改主机名的方法
用hostname命令可以临时修改机器名,但机器重新启动之后就会恢复原来的值。
#hostname   //查看机器名
#hostname -i  //查看本机器名对应的ip地址
另外一种方法就是之久修改配置文件
修改/etc/sysconfig/network   修改这个文件,系统才有效
    /etc ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号