内容导航:
1、
platform
2、
java platform
1、
platform
英:
美:
常见释义:
n.平台;月台,站台;坛;讲台;厚底松糕鞋
1、Still, its really positive to see a book showing off the excellent capabilities of the Java
platform
.───不过,看到一本炫耀Java平台的卓越能力的书仍然是非常令人开心的。
2、The
platform
began to produce oil in 1994.───这个钻井平台开始产油。
3、This image displays the winding access road that leads up to the observing
platform
as well as the Observatory Control Room in the front.───图中展示了蜿蜒而上的盘山公路,尽头是观测平台,平台最前方建筑是观测控制室。
4、Nautical A
platform
enclosing the head of each mast of a sailing ship, to which the top mast rigging is attached.───帆船上包围着所有帆头的平台,顶桅索具就加结于其上。
5、But Elop said on Thursday that Nokias final assessment was that "we would not be able to differentiate enough" on Androids
platform
.───但是,埃洛普周四表示,诺基亚最终得出的结论是,采用Android平台,“将无法有效地保证诺基亚产品的独特性”。
6、The hope was that development tool industry leaders would adopt Eclipse as the underlying
platform
for their best-of-breed tool offerings.───它的愿望是开发工具行业领头人能够采用Eclipse作为最佳血统工具的底层平台。
7、Because a MOM architecture decouples components and enables cross-
platform
communication between them, individual units can be heterogenous.───由于MOM架构对组件去耦且支持它们之间的跨平台通信,单个原件可以是异构的。
8、The Edinburgh train is waiting at
platform
4.───爱丁堡的火车在4号站台等候。
9、On the
platform
, the guard blew his whistle.───站台上,警卫吹响了他的哨子。
2、
java platform
java platform是什么,让我们一起了解一下?
paltform是一种虚拟的总线,用于管理外设资源、内存资源、中断资源,在硬件上有USB-BUS总线,PCI-BUS总线,这是在物理设备上实际存在的总线。platform的一个优点就是将驱动和设备分开,提高驱动的移植性。
platform的灵魂是:device(设备)driver(驱动)platform_bus(platform总线),其特点是设备,驱动分层动态的管理和加载,其中platform_bus是一个虚拟的总线。
drvier和device匹配的方法有3种:
1、当一个设备注册的时候,他会在总线上寻找匹配的driver,platform device一般在系统启动很早的时候就注册了。
2、当一个驱动注册【platform_driver_register()】的时候,他会遍历所有总线上的设备来寻找匹配,在启动的过程驱动的注册一般比较晚,或者在模块载入的时候。
3、当一个驱动注册【platform_driver_probe()】的时候, 功能上和使用platform_driver_register()是一样的,唯一的区别是它不能被以后其他的device probe了,也就是说这个driver只能和 一个device绑定。
如何定义一个driver?
static struct platform_driver test_platform_driver = { .probe = dev_test_probe, .remove = dev_test_remove, .suspend = dev_test_suspend, .resume = dev_test_resume, .driver = { .owner = THIS_MODULE, .name = "cx2837_test", }, };
如何定义一个device(设备)? static struct platform_device dev_fb0 = { .name = "cx2837_test", .id = 1, };