Commit c78fba3c authored by Yizhen Fan's avatar Yizhen Fan Committed by fanyizhen1995
Browse files

ub: ubcore provide query resources ops



driver inclusion
category: feature
bugzilla: NA
CVE: NA

--------------------------------

Ubcore provide query_res ops.

- query_res: ubcore will call UBN vendor driver registered methods to query
specified res info like tp, jetty, etc.

Input parameter:
dev: contains vendor-defined private device data.
key: specifies the type and key value of the information to be queried.
Multiple consecutive keys can be queried.
val: specifies the address for storing query results and
the total length of the allocated buffer.
In the case of consecutive key queries, ensure that the buffer can store
the query results of a specified number of keys.
Output parameter:
val: indicates the address for storing the query result
and the length of the actual data.
Return value:
The value 0 indicates that the query is successful.
The value other than 0 indicates that the query fails.
If the buffer specified in Val is sufficient, the query is successful
and the actual data length is returned. If the buffer is insufficient,
a failure message is returned. The driver fills in the expected buffer
length.

Signed-off-by: default avatarGuoxin Qian <qianguoxin@huawei.com>
Signed-off-by: default avatarYizhen Fan <fanyizhen@huawei.com>
parent 13f37117
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment