Commiting custom data on HDD

Submitted by Anonymous
on January 24, 2006 - 5:03pm

Hi,
I am working on linux kernel 2.6 with i386 platform and developing a block device driver. I want to commit my own data on HDD. Wht is the exact procedure for doing it ?

I hv allocated a page, allocated bio then filled its fields appropriately. Now while copying some data say a string i first declare tht string as char *str = "ABCD" later use memcpy(va1,str,6) where va1 is kmap(alloc_page(GFP_NOIO,1)).

How should i assign /copy any random data to bio ?

-Thanks