diff --git a/en/device-dev/driver/driver-message-mechanism-management.md b/en/device-dev/driver/driver-message-mechanism-management.md
index d853c836dd9d3c852e8e7418de1313555ec26534..3ea214d2ade48cb8955cd793fd84aadc2cc38d81 100644
--- a/en/device-dev/driver/driver-message-mechanism-management.md
+++ b/en/device-dev/driver/driver-message-mechanism-management.md
@@ -24,7 +24,7 @@ The message mechanism provides the following features:
-
struct HdfIoService *HdfIoServiceBind(const char *serviceName, mode_t permission)
+ |
struct HdfIoService *HdfIoServiceBind(const char *serviceName)
|
Obtains a specified driver service. After the service is obtained, the Dispatch function of the service is used to send messages to the driver.
|
@@ -100,7 +100,7 @@ The message mechanism provides the following features:
HDF_LOGE("test msg is null");
return -1;
}
- struct HdfIoService *serv = HdfIoServiceBind("sample_driver", 0);
+ struct HdfIoService *serv = HdfIoServiceBind("sample_driver");
if (serv == NULL) {
HDF_LOGE("fail to get service");
return -1;
@@ -159,7 +159,7 @@ The message mechanism provides the following features:
```
int RegisterListen()
{
- struct HdfIoService *serv = HdfIoServiceBind("sample_driver", 0);
+ struct HdfIoService *serv = HdfIoServiceBind("sample_driver");
if (serv == NULL) {
HDF_LOGE("fail to get service");
return -1;
diff --git a/en/device-dev/driver/hdfdevelopment-example.md b/en/device-dev/driver/hdfdevelopment-example.md
index 2238a7e4ceed1d78951ce7182b6b91f1dba36a50..d6743f7662f1606a6097780a069dba1db8414ace 100644
--- a/en/device-dev/driver/hdfdevelopment-example.md
+++ b/en/device-dev/driver/hdfdevelopment-example.md
@@ -195,7 +195,7 @@ out:
int main()
{
char *sendData = "default event info";
- struct HdfIoService *serv = HdfIoServiceBind(SAMPLE_SERVICE_NAME, 0);
+ struct HdfIoService *serv = HdfIoServiceBind(SAMPLE_SERVICE_NAME);
if (serv == NULL) {
HDF_LOGE("fail to get service %s", SAMPLE_SERVICE_NAME);
return HDF_FAILURE;
diff --git "a/zh-cn/device-dev/driver/HDF\345\274\200\345\217\221\345\256\236\344\276\213.md" "b/zh-cn/device-dev/driver/HDF\345\274\200\345\217\221\345\256\236\344\276\213.md"
index aa3d4e46a4c44ebd20c128740d33399da7e1c141..0cf1ebe7a3a6ae33a0752a61fc151acfcb08a45c 100644
--- "a/zh-cn/device-dev/driver/HDF\345\274\200\345\217\221\345\256\236\344\276\213.md"
+++ "b/zh-cn/device-dev/driver/HDF\345\274\200\345\217\221\345\256\236\344\276\213.md"
@@ -195,7 +195,7 @@ out:
int main()
{
char *sendData = "default event info";
- struct HdfIoService *serv = HdfIoServiceBind(SAMPLE_SERVICE_NAME, 0);
+ struct HdfIoService *serv = HdfIoServiceBind(SAMPLE_SERVICE_NAME);
if (serv == NULL) {
HDF_LOGE("fail to get service %s", SAMPLE_SERVICE_NAME);
return HDF_FAILURE;
diff --git "a/zh-cn/device-dev/driver/\351\251\261\345\212\250\346\266\210\346\201\257\346\234\272\345\210\266\347\256\241\347\220\206.md" "b/zh-cn/device-dev/driver/\351\251\261\345\212\250\346\266\210\346\201\257\346\234\272\345\210\266\347\256\241\347\220\206.md"
index ebdb610158da9d7fd0450f30a8234f4a8e6ab704..ac271c2f1e520c0d8d1c31cf4ab5ab79ef498727 100644
--- "a/zh-cn/device-dev/driver/\351\251\261\345\212\250\346\266\210\346\201\257\346\234\272\345\210\266\347\256\241\347\220\206.md"
+++ "b/zh-cn/device-dev/driver/\351\251\261\345\212\250\346\266\210\346\201\257\346\234\272\345\210\266\347\256\241\347\220\206.md"
@@ -24,7 +24,7 @@
-struct HdfIoService *HdfIoServiceBind(const char *serviceName, mode_t permission)
+ |
struct HdfIoService *HdfIoServiceBind(const char *serviceName)
|
用户态获取驱动的服务,获取该服务之后通过服务中的Dispatch方法向驱动发送消息。
|
@@ -100,7 +100,7 @@
HDF_LOGE("test msg is null");
return -1;
}
- struct HdfIoService *serv = HdfIoServiceBind("sample_driver", 0);
+ struct HdfIoService *serv = HdfIoServiceBind("sample_driver");
if (serv == NULL) {
HDF_LOGE("fail to get service");
return -1;
@@ -159,7 +159,7 @@
```
int RegisterListen()
{
- struct HdfIoService *serv = HdfIoServiceBind("sample_driver", 0);
+ struct HdfIoService *serv = HdfIoServiceBind("sample_driver");
if (serv == NULL) {
HDF_LOGE("fail to get service");
return -1;