Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
scm_command Struct Reference

Data Fields

u32 len
 
u32 buf_offset
 
u32 resp_hdr_offset
 
u32 id
 
u32 buf [0]
 

Detailed Description

struct scm_command - one SCM command buffer : total available memory for command and response : start of command buffer : start of response buffer : command to be executed : buffer returned from scm_get_command_buffer()

An SCM command is laid out in memory as follows:

----------------— <— struct scm_command | command header | ----------------— <— scm_get_command_buffer() | command buffer | ----------------— <— struct scm_response and | response header | scm_command_to_response() ----------------— <— scm_get_response_buffer()

| response buffer |

There can be arbitrary padding between the headers and buffers so you should always use the appropriate scm_get_*_buffer() routines to access the buffers in a safe manner.

Definition at line 65 of file scm.c.

Field Documentation

u32 buf[0]

Definition at line 70 of file scm.c.

u32 buf_offset

Definition at line 67 of file scm.c.

Definition at line 69 of file scm.c.

u32 len

Definition at line 66 of file scm.c.

u32 resp_hdr_offset

Definition at line 68 of file scm.c.


The documentation for this struct was generated from the following file: