Lines Matching refs:data
47 Dtdata_t *data;
55 data = NIL(Dtdata_t*);
64 { if((ev = (*disc->eventf)(&pdt,DT_OPEN,(Void_t*)(&data),disc)) < 0)
67 { if(data) /* shared data are being restored */
68 { if((data->type & DT_METHODS) != meth->type)
72 pdt.data = data;
76 { if(data) /* dt should be allocated with dt->data */
81 if(!pdt.data) /* allocate method-specific data */
82 if((*meth->eventf)(&pdt, DT_OPEN, NIL(Void_t*)) < 0 || !pdt.data )
84 pdt.data->type |= type;
87 if(pdt.data->type&DT_INDATA)
88 dt = &pdt.data->dict;
97 dt->user = &dt->data->user; /* space allocated for application usage */
160 return asolock(&dt->data->user.lock, key, ASO_LOCK);
162 return asolock(&dt->data->user.lock, key, ASO_UNLOCK);
163 else return asolock(&dt->data->user.lock, key, ASO_TRYLOCK);
166 Void_t* dtuserdata(Dt_t* dt, Void_t* data, unsigned int key)
169 return dt->data->user.data;
173 { dt->data->user.data = data;
175 return data;