The Linux kernel is one of the most interesting yet least understood open-source projects. It is also a basis for developing new kernel code. That is why Sams is excited to bring you the latest Linux kernel development information from a Novell insider in the second edition of Linux Kernel Development. This authoritative, practical guide will help you better understand the Linux kernel through updated coverage of all the major subsystems, new features associated with Linux 2.6 kernel and insider information on not-yet-released developments. You ll be able to take an in-depth look at Linux kernel from both a theoretical and an applied perspective as you cover a wide range of topics, including algorithms, system Call interface, paging strategies and kernel synchronization. Get the top information right from the source in Linux Kernel Development.
The Linux kernel is one of the most interesting yet least understood open-source projects. It is also a basis for developing new kernel code. That is why Sams is excited to bring you the latest Linux kernel development information from a Novell insider in the second edition of Linux Kernel Development. This authoritative, practical guide will help you better understand the Linux kernel through updated coverage of all the major subsystems, new features associated with Linux 2.6 kernel and insider information on not-yet-released developments. You ll be able to take an in-depth look at Linux kernel from both a theoretical and an applied perspective as you cover a wide range of topics, including algorithms, system Call interface, paging strategies and kernel synchronization. Get the top information right from the source in Linux Kernel Development.
tServer task executes functions at low priority (254). serverSend
funtion is used to send a request to the tServer to execute a
function at the tServer s priority.
First tServer task executes the i() system Call to print the summary
of tShell task. Next an address exception is caused in tServer
task by trying to execute a funtion at non-aligned word boundry.
As a result SIGBUS signal is raised automatiCally. Signals
(setjmp() and longjmp()) are used to allow the tServer task to
recover gracefully from an address error exception. For more
information about signals, please refer to sigLib manual pages.
Visual Basic 6.0可以通過調(diào)用API函數(shù)格式化一個(gè)磁盤,無論是軟盤還是硬盤。
打開一個(gè)新的項(xiàng)目(工程1) ,如果你沒有更改過缺省模式,那么Visual Basic 6.0會(huì)自動(dòng)添加一個(gè)form1文件,在form1上添加一個(gè)命令控件,將下面的代碼拷入。
Option Explicit
Private Declare Function SHFormatDrive Lib"shell32"( ByVal Hend AS Long,ByVal Drive AS Long,ByVal FormatID AS Long,ByVal Options AS Long) as Long
Private Sub FormatDisk(intDrive as integer,blnQuickFormat as Boolean)
dim lngReturn As Long
if (blnQuickFormat) then
lngReturn= SHFormatDrive(0,intDrive,0&,1&)
else
lngReturn= SHFormatDrive(0,intDrive,0&,0&)
end if
end Sub
Private Sub Command1_Click()
Call FormatDisk(0,True)
End Sub
運(yùn)行此程序。
注意FormatDisk函數(shù)的第一個(gè)變量很重要,他的值是0,1,2時(shí)代表格式化的分別是:A、B、C盤。
This sample uses Microsoft.WindowsMobile.PocketOutlook and
Microsoft.WindowsMobile.Telephony to:
- Databind a ContactCollection to a ListBox.
- Databind a Contact Property to a TextBox.
- Edit Contact Properties.
- Send SMS messages
- Call a contact s phone number.