Searched refs:instance (Results 1 - 25 of 81) sorted by relevance

1234

/barrelfish-master/lib/lwip2/src/apps/snmp/
H A Dsnmp_table.c46 snmp_err_t snmp_table_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
49 const struct snmp_table_node* table_node = (const struct snmp_table_node*)(const void*)instance->node;
54 /* check min. length (fixed row entry definition, column, row instance oid with at least one entry */
56 if ((instance->instance_oid.len >= 3) && (instance->instance_oid.id[0] == 1)) {
61 if (col_def->index == instance->instance_oid.id[1]) {
71 instance->asn1_type = col_def->asn1_type;
72 instance->access = col_def->access;
73 instance->get_value = table_node->get_value;
74 instance
88 snmp_table_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
164 snmp_table_simple_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
227 snmp_table_simple_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
321 snmp_table_extract_value_from_s32ref(struct snmp_node_instance* instance, void* value) argument
329 snmp_table_extract_value_from_u32ref(struct snmp_node_instance* instance, void* value) argument
337 snmp_table_extract_value_from_refconstptr(struct snmp_node_instance* instance, void* value) argument
[all...]
H A Dsnmp_scalar.c45 static s16_t snmp_scalar_array_get_value(struct snmp_node_instance* instance, void* value);
46 static snmp_err_t snmp_scalar_array_set_test(struct snmp_node_instance* instance, u16_t value_len, void* value);
47 static snmp_err_t snmp_scalar_array_set_value(struct snmp_node_instance* instance, u16_t value_len, void* value);
50 snmp_scalar_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
52 const struct snmp_scalar_node* scalar_node = (const struct snmp_scalar_node*)(const void*)instance->node;
57 /* scalar only has one dedicated instance: .0 */
58 if ((instance->instance_oid.len != 1) || (instance->instance_oid.id[0] != 0)) {
62 instance->access = scalar_node->access;
63 instance
71 snmp_scalar_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
86 snmp_scalar_array_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
121 snmp_scalar_array_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
194 snmp_scalar_array_get_value(struct snmp_node_instance* instance, void* value) argument
203 snmp_scalar_array_set_test(struct snmp_node_instance* instance, u16_t value_len, void* value) argument
212 snmp_scalar_array_set_value(struct snmp_node_instance* instance, u16_t value_len, void* value) argument
[all...]
H A Dsnmp_threadsync.c47 sys_mutex_lock(&call_data->threadsync_node->instance->sem_usage_mutex);
48 call_data->threadsync_node->instance->sync_fn(fn, call_data);
49 sys_sem_wait(&call_data->threadsync_node->instance->sem);
50 sys_mutex_unlock(&call_data->threadsync_node->instance->sem_usage_mutex);
60 sys_sem_signal(&call_data->threadsync_node->instance->sem);
64 threadsync_get_value(struct snmp_node_instance* instance, void* value) argument
66 struct threadsync_data *call_data = (struct threadsync_data*)instance->reference.ptr;
81 sys_sem_signal(&call_data->threadsync_node->instance->sem);
85 threadsync_set_test(struct snmp_node_instance* instance, u16_t len, void *value) argument
87 struct threadsync_data *call_data = (struct threadsync_data*)instance
107 threadsync_set_value(struct snmp_node_instance* instance, u16_t len, void *value) argument
129 threadsync_release_instance(struct snmp_node_instance *instance) argument
161 do_sync(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance, snmp_threadsync_called_fn fn) argument
197 snmp_threadsync_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
203 snmp_threadsync_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance) argument
209 snmp_threadsync_init(struct snmp_threadsync_instance *instance, snmp_threadsync_synchronizer_fn sync_fn) argument
[all...]
H A Dsnmp_mib2_interfaces.c62 interfaces_get_value(struct snmp_node_instance* instance, void* value) argument
64 if (instance->node->oid == 1) {
163 interfaces_Table_get_value(struct snmp_node_instance* instance, void* value) argument
165 struct netif *netif = (struct netif*)instance->reference.ptr;
170 switch (SNMP_TABLE_GET_COLUMN_FROM_OID(instance->instance_oid.id))
283 interfaces_Table_set_test(struct snmp_node_instance* instance, u16_t len, void *value) argument
289 LWIP_ASSERT("Invalid column", (SNMP_TABLE_GET_COLUMN_FROM_OID(instance->instance_oid.id) == 7));
300 interfaces_Table_set_value(struct snmp_node_instance* instance, u16_t len, void *value) argument
302 struct netif *netif = (struct netif*)instance->reference.ptr;
307 LWIP_ASSERT("Invalid column", (SNMP_TABLE_GET_COLUMN_FROM_OID(instance
[all...]
H A Dsnmp_mib2_ip.c62 ip_get_value(struct snmp_node_instance* instance, void* value) argument
67 switch (instance->node->oid) {
139 LWIP_DEBUGF(SNMP_MIB_DEBUG,("ip_get_value(): unknown id: %"S32_F"\n", instance->node->oid));
149 * @param instance node instance
157 ip_set_test(struct snmp_node_instance* instance, u16_t len, void *value) argument
163 switch (instance->node->oid) {
182 LWIP_DEBUGF(SNMP_MIB_DEBUG,("ip_set_test(): unknown id: %"S32_F"\n", instance->node->oid));
190 ip_set_value(struct snmp_node_instance* instance, u16_t len, void *value) argument
192 LWIP_UNUSED_ARG(instance);
[all...]
H A Dsnmp_mib2_udp.c61 udp_get_value(struct snmp_node_instance* instance, void* value) argument
65 switch (instance->node->oid) {
85 LWIP_DEBUGF(SNMP_MIB_DEBUG,("udp_get_value(): unknown id: %"S32_F"\n", instance->node->oid));
H A Dsnmp_mib2_tcp.c62 tcp_get_value(struct snmp_node_instance* instance, void* value) argument
67 switch (instance->node->oid) {
132 LWIP_DEBUGF(SNMP_MIB_DEBUG,("tcp_get_value(): unknown id: %"S32_F"\n", instance->node->oid));
/barrelfish-master/include/lwip2/lwip/apps/
H A Dsnmp_threadsync.h75 /** Thread sync instance. Needed EXCATLY once for every thread to be synced into. */
91 struct snmp_threadsync_instance *instance; member in struct:snmp_threadsync_node
94 snmp_err_t snmp_threadsync_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
95 snmp_err_t snmp_threadsync_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
105 /** Create thread sync instance data */
106 void snmp_threadsync_init(struct snmp_threadsync_instance *instance, snmp_threadsync_synchronizer_fn sync_fn);
H A Dsnmp_scalar.h63 snmp_err_t snmp_scalar_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
64 snmp_err_t snmp_scalar_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
98 snmp_err_t snmp_scalar_array_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
99 snmp_err_t snmp_scalar_array_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
H A Dsnmp_table.h75 snmp_err_t snmp_table_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
76 snmp_err_t snmp_table_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
86 #define SNMP_TABLE_GET_COLUMN_FROM_OID(oid) ((oid)[1]) /* first array value is (fixed) row entry (fixed to 1) and 2nd value is column, follow3ed by instance */
115 snmp_err_t snmp_table_simple_get_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
116 snmp_err_t snmp_table_simple_get_next_instance(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
124 s16_t snmp_table_extract_value_from_s32ref(struct snmp_node_instance* instance, void* value);
125 s16_t snmp_table_extract_value_from_u32ref(struct snmp_node_instance* instance, void* value);
126 s16_t snmp_table_extract_value_from_refconstptr(struct snmp_node_instance* instance, void* value);
H A Dsnmp_core.h172 /** SNMP node instance access types */
191 /** SNMP node instance */
196 /** prefilled with the instance id requested; for get_instance() this is the exact oid requested; for get_next_instance() this is the relative starting point, stack expects relative oid of next node here */
201 /** one out of instance access types defined above (SNMP_NODE_INSTANCE_READ_ONLY,...) */
210 /** called in any case when the instance is not required anymore by stack (useful for freeing memory allocated in get_instance/get_next_instance methods) */
242 snmp_err_t (*get_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
243 snmp_err_t (*get_next_instance)(const u32_t *root_oid, u8_t root_oid_len, struct snmp_node_instance* instance);
318 snmp_err_t snmp_set_test_ok(struct snmp_node_instance* instance, u16_t value_len, void* value); /* generic function which can be used if test is always successful */
/barrelfish-master/lib/lwip2/src/apps/snmp_private_mib/
H A Dlwip_prvmib.c111 static s16_t sensor_count_get_value(struct snmp_node_instance* instance, void* value);
114 static s16_t sensor_table_get_value(struct snmp_node_instance* instance, void* value);
115 static snmp_err_t sensor_table_set_value(struct snmp_node_instance* instance, u16_t len, void *value);
251 sensor_count_get_value(struct snmp_node_instance* instance, void* value) argument
256 LWIP_UNUSED_ARG(instance);
342 sensor_table_get_value(struct snmp_node_instance* instance, void* value) argument
344 u32_t i = instance->reference.u32;
347 switch (SNMP_TABLE_GET_COLUMN_FROM_OID(instance->instance_oid.id))
376 sensor_table_set_value(struct snmp_node_instance* instance, u16_t len, void *value) argument
378 u32_t i = instance
[all...]
/barrelfish-master/lib/lwip/src/core/snmp/
H A Dmib2.c2118 od->instance = MIB_OBJECT_NONE;
2178 od->instance = MIB_OBJECT_SCALAR;
2185 od->instance = MIB_OBJECT_SCALAR;
2192 od->instance = MIB_OBJECT_SCALAR;
2199 od->instance = MIB_OBJECT_SCALAR;
2206 od->instance = MIB_OBJECT_SCALAR;
2213 od->instance = MIB_OBJECT_SCALAR;
2220 od->instance = MIB_OBJECT_SCALAR;
2229 od->instance = MIB_OBJECT_NONE;
2234 od->instance
[all...]
H A Dmsg_in.c154 if (msg_ps->ext_object_def.instance != MIB_OBJECT_NONE) {
256 if (object_def.instance != MIB_OBJECT_NONE) {
354 if (msg_ps->ext_object_def.instance != MIB_OBJECT_NONE) {
483 if (msg_ps->ext_object_def.instance != MIB_OBJECT_NONE) {
526 if (msg_ps->ext_object_def.instance != MIB_OBJECT_NONE) {
585 if (object_def.instance != MIB_OBJECT_NONE) {
/barrelfish-master/usr/eclipseclp/documents/libman/
H A Deplexdiff.tex39 type of eplex constraint, i.e., they are posted to an eplex instance, and
59 \item Bounds constraints intended for an eplex instance should be posted to
60 that instance, e.g.
64 [eclipse 3]: eplex_instance(instance).
67 [eclipse 4]: instance: eplex_solver_setup(min(X)),
68 instance: (X:: 0.0..10.0), instance: eplex_solve(C).
78 instance. Other eplex instances (and indeed any other bounds-keeping
81 instance, they will be added. Both of these are different from the
85 Like other eplex constraints, inconsistency within the same eplex instance
[all...]
H A Deplex.tex109 library is through {\it Eplex Instances}. An eplex instance is an instance
111 {\it solver state} can be associated with each eplex instance, which can be
112 invoked to solve the eplex problem. Declaratively, an eplex instance can be
116 Like other solvers, each eplex instance has its own module. To use an eplex
117 instance, it must first be declared, so that the module can be created.
122 This predicate will initialise an eplex instance {\tt Name}. Once
127 the instance directly in their code. For example:
130 :- eplex_instance(instance).
134 For convenience, the eplex library declares {\tt eplex} as an eplex instance
[all...]
/barrelfish-master/usr/eclipseclp/documents/tutorial/
H A Deplex.tex191 \subsection{Eplex instance}
194 instance}. Abstractly, it can be viewed as a solver module that is
195 dedicated to one MP problem. MP constraints can be posted to the instance
199 Declaratively, an eplex instance can be
203 an eplex instance do not necessarily have to be consistent with those in
208 An {\bf eplex instance} represents a single MP problem in a
217 Figure~\ref{tpprob}, using an eplex instance:
223 :- eplex_instance(prob). % a. declare an eplex instance
230 % c. post the constraints for the problem to the eplex instance
254 To use an eplex instance, i
[all...]
H A Dcolgen.tex113 % eplex instance creation
185 % column generation instance creation
230 where we first create a {\tt colgen} instance {\tt cut\_stock}, set up the variable domains of the subproblem and the demand constraints of the master problem, set up the initial master problem bound constraints and subproblem knapsack constraint, then solve and return the variables with non-zero values in the optimal solution. The definition of cutting cost as waste has been combined with the knapsack constraint, while the bounds placed on this cost exclude cuttings with sufficient waste to produce further boards, thus limiting the amount of search in subproblem solution. The chosen method of subproblem solution is:
255 % create solution structure and post to problem instance
280 it to the master problem instance.
/barrelfish-master/usr/eclipseclp/Kernel/lib/
H A Dkernel_bips.pl363 % the number of instance checks because duplicates are removed,
379 ( instance(Elem, First) ->
381 ; instance(First, Elem) ->
382 Result = [Elem|Res0], % replace first instance
392 ( instance(First, Elem) ->
H A Dnotinstance.pl37 % X ~=< Y (X not instance of Y)
128 % X ~=< Y Constrain X not to be an instance of Y.
139 summary:"Constrain X not to be an instance of Y",
154 true % definitely not an instance
191 \+ instance(X,Y),
H A Dcprolog.pl109 numbers. For instance, under C-Prolog when the call X is
139 <DT>instance/2
181 instance/2,
244 instance/2,
263 instance/2,
425 instance(Ref, Term) :-
H A Dlips.pl67 instance is assumed to have 496 logical inferences.
/barrelfish-master/usr/eclipseclp/Visualisation/src/com/parctechnologies/eclipse/visualisation/
H A DScenarioManager.java63 * Hold the singleton instance
65 private static ScenarioManager instance ; field in class:ScenarioManager
73 * Returns the singleton instance
76 if (instance == null) {
77 instance = new ScenarioManager();
79 return instance;
/barrelfish-master/lib/cxx/cxxabi/
H A Dcxa_guard_impl.h515 static T instance; member in struct:__cxxabiv1::__anon200::GlobalStatic
518 _LIBCPP_SAFE_STATIC T GlobalStatic<T>::instance = {}; member in class:__cxxabiv1::__anon200::GlobalStatic
537 LibcppMutex, LibcppCondVar, GlobalStatic<LibcppMutex>::instance,
538 GlobalStatic<LibcppCondVar>::instance, PlatformThreadID>;
/barrelfish-master/doc/019-device-drivers/
H A DDeviceDriver.tex83 \item[Driver Instance] A driver instance is the runtime object instantiated from a
99 \item[\fnname{create}] Creates a driver instance from a driver module.
100 \item[\fnname{destroy}] Destroys a previously created driver instance.
104 is made to spawn an instance of a specific module. The driver domain uses a
129 \item[\fnname{destroy}] Destruct the driver instance, release ownership of device.
139 \label{sec:instance}
142 having a specific, per-instance state coupled with the functions provided in
144 exported for every driver instance.
146 Kaluga connects to the dcontrol interface of a driver instance to have more fine
147 grained control over the life-cycle of the instance
[all...]

Completed in 223 milliseconds

1234