Skip to content

Instantly share code, notes, and snippets.

View norcali's full-sized avatar

Nicolas Orcali norcali

View GitHub Profile
SYSCALL_DEFINE3(silly_copy,
unsigned long *, src,
unsigned long *, dst,
unsigned long, len)
{
unsigned long buf[64]; /* Buffer for chunks */
unsigned long lenleft = len; /* Remaining size */
unsigned long chunklen = sizeof(buf); /* Initial chunk length */
/* Loop handling chunk sizes */
def set_full_name
wed = self
wed.full_name = self.couple.full_name
wed.save
end