Use NTFS-3G to write NTFS file system and ntfslabel to get the partition information(UUID/Label).
http://www.tuxera.com/open-source/release-ntfs-3g-ntfsprogs-2011-4-12/
2011年7月22日 星期五
2011年7月21日 星期四
[WindowsXP] Format USB for NTFS
http://lifehacker.com/5195783/format-a-usb-drive-as-ntfs-in-windows-xp
[USB property] -> [Policies] -> [Optimize to performance]
[USB property] -> [Policies] -> [Optimize to performance]
2011年7月19日 星期二
2011年7月13日 星期三
[Android] MIPS on Android - Application
1. Getting Started with Android
2. Android on MIPS Source Code
3. Build MIPS platform
$ export TARGET_PRODUCT=generic
$ export TARGET_ARCH=mips
$ export TARGET_ARCH_VARIANT=mips32-fp
$ source build/envsetup.sh
$ make -j4
2. Android on MIPS Source Code
3. Build MIPS platform
$ export TARGET_PRODUCT=generic
$ export TARGET_ARCH=mips
$ export TARGET_ARCH_VARIANT=mips32-fp
$ source build/envsetup.sh
$ make -j4
2011年7月1日 星期五
[Linux] callback function
Callback function
The program did "call" the function is initiative, but "callback" function is passive. For example, interrupt handler or event handler was called in some specific situations, they were "callback" functions.
The implementation for callback function is typically a function point in C.
The use of function point is like an abstraction layer. Every driver has to implement the same functions, just like r8169.c ethernet driver must implement the functions related to the pci_driver struct needed.
static struct pci_driver rtl8169_pci_driver = {
.name = MODULENAME,
.id_table = rtl8169_pci_tbl,
.probe = rtl8169_init_one,
.remove = __devexit_p(rtl8169_remove_one),
#ifdef CONFIG_PM
.suspend = rtl8169_suspend,
.resume = rtl8169_resume,
.shutdown = rtl_shutdown,
#endif
};
The program did "call" the function is initiative, but "callback" function is passive. For example, interrupt handler or event handler was called in some specific situations, they were "callback" functions.
The implementation for callback function is typically a function point in C.
The use of function point is like an abstraction layer. Every driver has to implement the same functions, just like r8169.c ethernet driver must implement the functions related to the pci_driver struct needed.
static struct pci_driver rtl8169_pci_driver = {
.name = MODULENAME,
.id_table = rtl8169_pci_tbl,
.probe = rtl8169_init_one,
.remove = __devexit_p(rtl8169_remove_one),
#ifdef CONFIG_PM
.suspend = rtl8169_suspend,
.resume = rtl8169_resume,
.shutdown = rtl_shutdown,
#endif
};
訂閱:
文章 (Atom)