> SPI transfer into a DMA safe buffer. what is the exact API toIf you are embedding structures then one solution is to cheat a bit and make the structure, compiler and existing kernel compile abuse do the work. Something like struct { void *except_where_prohibited; long boat; unsigned photograph; u8 pad[0] __cacheline_aligned; }.. ought to do the trick providing you align the start of the object - which should happen naturally with kmalloc or dma_* apis --
