Rev 2857 | Rev 3002 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 2857 | Rev 2863 | ||
|---|---|---|---|
| Line 192... | Line 192... | ||
| 192 | void *nodep; |
192 | void *nodep; |
| 193 | if (lflag & L_CREATE) |
193 | if (lflag & L_CREATE) |
| 194 | nodep = ops->create(lflag); |
194 | nodep = ops->create(lflag); |
| 195 | else |
195 | else |
| 196 | nodep = ops->node_get(dev_handle, |
196 | nodep = ops->node_get(dev_handle, |
| 197 | index, ops->index_get(cur)); |
197 | index); |
| 198 | if (nodep) { |
198 | if (nodep) { |
| 199 | if (!ops->link(cur, nodep, component)) { |
199 | if (!ops->link(cur, nodep, component)) { |
| 200 | if (lflag & L_CREATE) |
200 | if (lflag & L_CREATE) |
| 201 | (void)ops->destroy(nodep); |
201 | (void)ops->destroy(nodep); |
| 202 | ipc_answer_0(rid, ENOSPC); |
202 | ipc_answer_0(rid, ENOSPC); |
| Line 260... | Line 260... | ||
| 260 | 260 | ||
| 261 | void *nodep; |
261 | void *nodep; |
| 262 | if (lflag & L_CREATE) |
262 | if (lflag & L_CREATE) |
| 263 | nodep = ops->create(lflag); |
263 | nodep = ops->create(lflag); |
| 264 | else |
264 | else |
| 265 | nodep = ops->node_get(dev_handle, index, |
265 | nodep = ops->node_get(dev_handle, index); |
| 266 | ops->index_get(cur)); |
- | |
| 267 | if (nodep) { |
266 | if (nodep) { |
| 268 | if (!ops->link(cur, nodep, component)) { |
267 | if (!ops->link(cur, nodep, component)) { |
| 269 | if (lflag & L_CREATE) |
268 | if (lflag & L_CREATE) |
| 270 | (void)ops->destroy(nodep); |
269 | (void)ops->destroy(nodep); |
| 271 | ipc_answer_0(rid, ENOSPC); |
270 | ipc_answer_0(rid, ENOSPC); |