DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SCO OpenServer

suword(D3oddi)


suword -- store a 32-bit word in user data space

Synopsis

int suword(caddr_t addr, int val);

Description

suword stores one 32-bit word in user data space.

Arguments


val
32-bit word to be stored in the user's data space.

addr
Pointer to the address in user space. The address does not have to be word-aligned.

Return values

suword returns -1 if the address addr is invalid; otherwise it returns 0 (zero).

Usage

When this function is called from the read(D2oddi) or write(D2oddi) entry point, the driver code must increase u.u_base and u.u_offset by the number of bytes transferred, and decrease u.u_count by the number of bytes transferred after the call completes:
   u.u_count -= cnt;
   u.u_offset += cnt;
   u.u_base += cnt;

Context and synchronization

User context.

Hardware applicability

All

Version applicability

oddi: 1, 2, 2mp, 3, 3mp, 4, 4mp, 5, 5mp, 6, 6mp

SVR5 DDI compatibility

DDI does not support this function. Replace calls to suword( ) with calls to the copyout(D3) function.

References

copyout(D3oddi), fubyte(D3oddi), fuword(D3oddi), subyte(D3oddi)

``Data, copying'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 5 HDK - June 2005