+ الرد على الموضوع
عرض النتائج من 1 إلى 11 لإجمالي 11

الموضوع: أروع كتاب لتعمل اللينوكس Linux Device Drivers

  1. #1
    عضو فعال Tiger الوسام الفضي ( الأول ) الصورة الشخصية لـ Tiger
    تاريخ التسجيل
    Feb 2006
    المشاركات
    232
    عدد مرات شكره للطلاب
    0
    تم شكره 156 مرة في 41 موضوع
    مستوى تقييم العضوية
    0

    أروع كتاب لتعمل اللينوكس Linux Device Drivers

    السلام عليكم ورحمة الله وبركاته



    As a programmer, you are able to make your own choices about your driver, and choose an acceptable trade-off between the programming time required and the flexibility of the result. Though it may appear strange to say that a driver is “flexible,” we like this word because it emphasizes that the role of a device driver is providing mechanism, not policy.

    The distinction between mechanism and policy is one of the best ideas behind the Unix design. Most programming problems can indeed be split into two parts: “what capabilities are to be provided” (the mechanism) and “how those capabilities can be used” (the policy). If the two issues are addressed by different parts of the program, or even by different programs altogether, the software package is much easier to develop and to adapt to particular needs.

    For example, Unix management of the graphic display is split between the X server, which knows the hardware and offers a unified interface to user programs, and the window and session managers, which implement a particular policy without knowing anything about the hardware. People can use the same window manager on different hardware, and different users can run different configurations on the same workstation. Even completely different desktop environments, such as KDE and GNOME, can coexist on the same system. Another example is the layered structure of TCP/IP networking: the operating system offers the socket abstraction, which implements no policy regarding the data to be transferred, while different servers are in charge of the services (and their associated policies). Moreover, a server like ftpd provides the file transfer mechanism, while users can use whatever client they prefer; both command-line and graphic clients exist, and anyone can write a new user interface to transfer files.

    Where drivers are concerned, the same separation of mechanism and policy applies. The floppy driver is policy free—its role is only to show the diskette as a continuous array of data blocks. Higher levels of the system provide policies, such as who may access the floppy drive, whether the drive is accessed directly or via a filesystem, and whether users may mount filesystems on the drive. Since different environments usually need to use hardware in different ways, it’s important to be as policy free as possible.

    When writing drivers, a programmer should pay particular attention to this fundamental concept: write kernel code to access the hardware, but don’t force particular policies on the user, since different users have different needs. The driver should deal with making the hardware available, leaving all the issues about how to use the hardware to the applications. A driver, then, is flexible if it offers access to the hardware capabilities without adding constraints. Sometimes, however, some policy decisions must be made. For example, a digital I/O driver may only offer byte-wide access to the hardware in order to avoid the extra code needed to handle individual bits.

    You can also look at your driver from a different perspective: it is a software layer that lies between the applications and the actual device. This privileged role of the driver allows the driver programmer to choose exactly how the device should appear: different drivers can offer different capabilities, even for the same device. The actual driver design should be a balance between many different considerations. For instance, a single device may be used concurrently by different programs, and the driver programmer has complete freedom to determine how to handle concurrency.

    You could implement memory mapping on the device independently of its hardware capabilities, or you could provide a user library to help application programmers implement new policies on top of the available primitives, and so forth. One major consideration is the trade-off between the desire to present the user with as many options as possible and the time you have to write the driver, as well as the need to keep things simple so that errors don’t creep in.

    Policy-free drivers have a number of typical characteristics. These include support for both synchronous and asynchronous operation, the ability to be opened multiple times, the ability to exploit the full capabilities of the hardware, and the lack of software layers to “simplify things” or provide policy-related operations. Drivers of this sort not only work better for their end users, but also turn out to be easier to write and maintain as well. Being policy-free is actually a common target for software designers.

    Many device drivers, indeed, are released together with user programs to help with configuration and access to the target device. Those programs can range from simple utilities to complete graphical applications. Examples include the tunelp program, which adjusts how the parallel port printer driver operates, and the graphical cardctl utility that is part of the PCMCIA driver package. Often a client library is provided as well, which provides capabilities that do not need to be implemented as part of the driver itself.

    The scope of this book is the kernel, so we try not to deal with policy issues or with application programs or support libraries. Sometimes we talk about different policies and how to support them, but we won’t go into much detail about programs using the device or the policies they enforce. You should understand, however, that user programs are an integral part of a software package and that even policy-free packages are distributed with configuration files that apply a default behavior to the underlying mechanisms.


    تفضل الكتاب من هنا



    حياكم الله

  2. عدد 3 من الطلاب تقدموا بالشكر لكاتب الموضوع Tiger علي هذه المشاركة الطيبة :

    bourzizo (2010-02-06), الصارم101 (2008-05-14), محمد-الوفي (2008-08-07)

  3. #2
    عضو جديد aref66 الوسام الفضي ( الأول )
    تاريخ التسجيل
    Feb 2008
    المشاركات
    9
    عدد مرات شكره للطلاب
    0
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0
    شكرا لك مقدماً

  4. #3
    عضو جديد promotion الوسام الفضي ( الأول )
    تاريخ التسجيل
    Mar 2008
    المشاركات
    6
    عدد مرات شكره للطلاب
    1
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0
    الف شكر ليك علي المجهود الصادق وربنا يزيدك من علوم ويزيد قدرتك من مواضيع متميزه مثلما انت متميز والي القاء في موضوع ومشاركه جديده ومتميزه مثلما انت متميز دوما ونراك علي احسن ما تكون بأذن الله
    ومره اخري شكرا جزيلا

  5. #4
    عضو جديد ahdjerou
    تاريخ التسجيل
    Apr 2008
    المشاركات
    2
    عدد مرات شكره للطلاب
    1
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0

    رد : أروع كتاب لتعمل اللينوكس Linux Device Drivers

    thank you for ever

  6. #5
    عضو مجتهد الصارم101 الوسام الفضي ( الأول ) الصورة الشخصية لـ الصارم101
    تاريخ التسجيل
    Nov 2007
    المشاركات
    72
    عدد مرات شكره للطلاب
    32
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0

    رد : أروع كتاب لتعمل اللينوكس Linux Device Drivers

    بارك الله فيك

  7. #6
    عضو جديد boukharibb
    تاريخ التسجيل
    May 2008
    المشاركات
    3
    عدد مرات شكره للطلاب
    0
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0

    رد : أروع كتاب لتعمل اللينوكس Linux Device Drivers

    بارك الله فيك

  8. #7
    عضو جديد somaa_1
    تاريخ التسجيل
    Jun 2008
    المشاركات
    18
    عدد مرات شكره للطلاب
    0
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0

    Lightbulb رد : أروع كتاب لتعمل اللينوكس Linux Device Drivers

    إقتباس اقتباس من مشاركة promotion مشاهدة المشاركة
    الف شكر ليك علي المجهود الصادق وربنا يزيدك من علوم ويزيد قدرتك من مواضيع متميزه مثلما انت متميز والي القاء في موضوع ومشاركه جديده ومتميزه مثلما انت متميز دوما ونراك علي احسن ما تكون بأذن الله
    ومره اخري شكرا جزيلا
    فعلا بارك الله فيك ولك
    وجعله الله فى ميزان حسناتك

  9. #8
    عضو نشيط محمد-الوفي الوسام الفضي ( الأول )
    تاريخ التسجيل
    Dec 2007
    الإقامة
    ابوظبي - الامارات
    المشاركات
    105
    عدد مرات شكره للطلاب
    48
    تم شكره 10 مرة في 4 موضوع
    مستوى تقييم العضوية
    0

    رد : أروع كتاب لتعمل اللينوكس Linux Device Drivers

    مشكور على الجهد
    PCLinuxOS
    مدونتي

  10. #9
    عضو جديد thamer1974
    تاريخ التسجيل
    Nov 2008
    المشاركات
    2
    عدد مرات شكره للطلاب
    0
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0

    رد : أروع كتاب لتعمل اللينوكس Linux Device Drivers

    ممنون منك اخي العزيز على الكتاب والله يبارك في عمرك وفي وقتك يا رب

  11. #10
    عضو جديد هشام أبو الخير
    تاريخ التسجيل
    Aug 2008
    المشاركات
    2
    عدد مرات شكره للطلاب
    0
    تم شكره 0 مرة في 0 موضوع
    مستوى تقييم العضوية
    0
    thanks alot 4 u

  12. #11
    عضو فضي bourzizo الصورة الشخصية لـ bourzizo
    تاريخ التسجيل
    Jul 2009
    المشاركات
    787
    عدد مرات شكره للطلاب
    273
    تم شكره 21 مرة في 10 موضوع
    مستوى تقييم العضوية
    0
    بارك الله فيك

+ الرد على الموضوع

معلومات الموضوع

الأعضاء الذين يشاهدون هذا الموضوع

الذين يشاهدون الموضوع الآن: 1 (0 من الأعضاء و 1 زائر)

     

مواضيع مشابهة

  1. كتاب حاسب جديد: شرح برنامج My Drivers Pro
    بواسطة محب الله ورسوله في المنتدى مكتبة كتب الحاسب
    الردود: 1
    آخر مشاركة: 2008-11-14, 11:54 PM
  2. Universal Drivers - 25,000 drivers for Windows
    بواسطة ابن العراق في المنتدى قسم البرامج
    الردود: 0
    آخر مشاركة: 2008-03-16, 02:49 AM
  3. كتاب حاسب جديد: Linux Device Drivers
    بواسطة محب الله ورسوله في المنتدى مكتبة كتب الحاسب
    الردود: 0
    آخر مشاركة: 2007-03-08, 10:18 AM
  4. كتاب حاسب جديد: برنامج ولا أروع لتغير الأصوات من أروع ما شاهدت
    بواسطة محب الله ورسوله في المنتدى مكتبة كتب الحاسب
    الردود: 0
    آخر مشاركة: 2007-03-07, 07:28 AM

الزوار وصلوا من محركات البحث لهذه الصفحة بالبحث عن الكلمات التالية:

لم يقم احد بزيارة هذه الصفحة من محركات البحث بعد.

مواقع النشر (المفضلة)

مواقع النشر (المفضلة)

قوانين المشاركة

  • لا تستطيع إضافة مواضيع جديدة
  • لا تستطيع الرد على المواضيع
  • لا تستطيع إرفاق ملفات
  • لا تستطيع تعديل مشاركاتك

المنتديات التقنية

كلية تكنولوجيا المعلومات
كلية الهندسة
كلية الطب
كلية العلوم
كلية الآداب
الجامعة العامة

برامج

برامج الحماية
برامج الملتمديا
برامج الإنترنت
برامج النظام وتحسين الأداء
برامج البرمجة
برامج الشبكات
برامج الجوال
برامج سطح المكتب

العاب

العاب بنات
العاب حربية و استراتيجية
العاب رياضية
العاب اطفال
العاب اكشن قتالية
العاب سيارات و السباق
العاب ذكاء
العاب متنوعه

كتب

مكتبة كتب الحاسب
مكتبة الكتب الهندسية
مكتبة الكتب الطبية
مكتبة الكتب الأدبية

روابط هامة

تسجيل عضوية
استعادة كلمة المرور
ارسال كود التفعيل
سياسة الخصوصية
الأسئلة الشائعة
اتصل بنا