diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-generic/memory_model.h | 2 | ||||
| -rw-r--r-- | include/net/iucv/iucv.h | 45 |
2 files changed, 46 insertions, 1 deletions
diff --git a/include/asm-generic/memory_model.h b/include/asm-generic/memory_model.h index 18546d8eb78e..36fa286adad5 100644 --- a/include/asm-generic/memory_model.h +++ b/include/asm-generic/memory_model.h | |||
| @@ -49,7 +49,7 @@ | |||
| 49 | 49 | ||
| 50 | /* memmap is virtually contigious. */ | 50 | /* memmap is virtually contigious. */ |
| 51 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) | 51 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) |
| 52 | #define __page_to_pfn(page) ((page) - vmemmap) | 52 | #define __page_to_pfn(page) (unsigned long)((page) - vmemmap) |
| 53 | 53 | ||
| 54 | #elif defined(CONFIG_SPARSEMEM) | 54 | #elif defined(CONFIG_SPARSEMEM) |
| 55 | /* | 55 | /* |
diff --git a/include/net/iucv/iucv.h b/include/net/iucv/iucv.h index fd70adbb3566..5e310c8d8e2f 100644 --- a/include/net/iucv/iucv.h +++ b/include/net/iucv/iucv.h | |||
| @@ -337,12 +337,35 @@ int iucv_message_purge(struct iucv_path *path, struct iucv_message *msg, | |||
| 337 | * established paths. This function will deal with RMDATA messages | 337 | * established paths. This function will deal with RMDATA messages |
| 338 | * embedded in struct iucv_message as well. | 338 | * embedded in struct iucv_message as well. |
| 339 | * | 339 | * |
| 340 | * Locking: local_bh_enable/local_bh_disable | ||
| 341 | * | ||
| 340 | * Returns the result from the CP IUCV call. | 342 | * Returns the result from the CP IUCV call. |
| 341 | */ | 343 | */ |
| 342 | int iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, | 344 | int iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, |
| 343 | u8 flags, void *buffer, size_t size, size_t *residual); | 345 | u8 flags, void *buffer, size_t size, size_t *residual); |
| 344 | 346 | ||
| 345 | /** | 347 | /** |
| 348 | * __iucv_message_receive | ||
| 349 | * @path: address of iucv path structure | ||
| 350 | * @msg: address of iucv msg structure | ||
| 351 | * @flags: flags that affect how the message is received (IUCV_IPBUFLST) | ||
| 352 | * @buffer: address of data buffer or address of struct iucv_array | ||
| 353 | * @size: length of data buffer | ||
| 354 | * @residual: | ||
| 355 | * | ||
| 356 | * This function receives messages that are being sent to you over | ||
| 357 | * established paths. This function will deal with RMDATA messages | ||
| 358 | * embedded in struct iucv_message as well. | ||
| 359 | * | ||
| 360 | * Locking: no locking. | ||
| 361 | * | ||
| 362 | * Returns the result from the CP IUCV call. | ||
| 363 | */ | ||
| 364 | int __iucv_message_receive(struct iucv_path *path, struct iucv_message *msg, | ||
| 365 | u8 flags, void *buffer, size_t size, | ||
| 366 | size_t *residual); | ||
| 367 | |||
| 368 | /** | ||
| 346 | * iucv_message_reject | 369 | * iucv_message_reject |
| 347 | * @path: address of iucv path structure | 370 | * @path: address of iucv path structure |
| 348 | * @msg: address of iucv msg structure | 371 | * @msg: address of iucv msg structure |
| @@ -386,12 +409,34 @@ int iucv_message_reply(struct iucv_path *path, struct iucv_message *msg, | |||
| 386 | * transmitted is in a buffer and this is a one-way message and the | 409 | * transmitted is in a buffer and this is a one-way message and the |
| 387 | * receiver will not reply to the message. | 410 | * receiver will not reply to the message. |
| 388 | * | 411 | * |
| 412 | * Locking: local_bh_enable/local_bh_disable | ||
| 413 | * | ||
| 389 | * Returns the result from the CP IUCV call. | 414 | * Returns the result from the CP IUCV call. |
| 390 | */ | 415 | */ |
| 391 | int iucv_message_send(struct iucv_path *path, struct iucv_message *msg, | 416 | int iucv_message_send(struct iucv_path *path, struct iucv_message *msg, |
| 392 | u8 flags, u32 srccls, void *buffer, size_t size); | 417 | u8 flags, u32 srccls, void *buffer, size_t size); |
| 393 | 418 | ||
| 394 | /** | 419 | /** |
| 420 | * __iucv_message_send | ||
| 421 | * @path: address of iucv path structure | ||
| 422 | * @msg: address of iucv msg structure | ||
| 423 | * @flags: how the message is sent (IUCV_IPRMDATA, IUCV_IPPRTY, IUCV_IPBUFLST) | ||
| 424 | * @srccls: source class of message | ||
| 425 | * @buffer: address of data buffer or address of struct iucv_array | ||
| 426 | * @size: length of send buffer | ||
| 427 | * | ||
| 428 | * This function transmits data to another application. Data to be | ||
| 429 | * transmitted is in a buffer and this is a one-way message and the | ||
| 430 | * receiver will not reply to the message. | ||
| 431 | * | ||
| 432 | * Locking: no locking. | ||
| 433 | * | ||
| 434 | * Returns the result from the CP IUCV call. | ||
| 435 | */ | ||
| 436 | int __iucv_message_send(struct iucv_path *path, struct iucv_message *msg, | ||
| 437 | u8 flags, u32 srccls, void *buffer, size_t size); | ||
| 438 | |||
| 439 | /** | ||
| 395 | * iucv_message_send2way | 440 | * iucv_message_send2way |
| 396 | * @path: address of iucv path structure | 441 | * @path: address of iucv path structure |
| 397 | * @msg: address of iucv msg structure | 442 | * @msg: address of iucv msg structure |
