Home | History | Annotate | Download | only in kernel_space

Lines Matching defs:tif

98 	tmod_interface_t tif;
111 * between user and kernel space, using the tif
116 if (copy_from_user(&tif, (void *)l, sizeof(tif))) {
124 if (tif.in_len > 0) {
125 inparms = (caddr_t *) kmalloc(tif.in_len, GFP_KERNEL);
130 rc = copy_from_user(inparms, tif.in_data, tif.in_len);
136 if (tif.out_len > 0) {
137 outparms = (caddr_t *) kmalloc(tif.out_len, GFP_KERNEL);
166 tif.out_rc = rc;
170 * setup the rest of tif pointer for returning to
174 /* if outparms then copy outparms into tif.out_data */
176 if (copy_to_user(tif.out_data, outparms, tif.out_len)) {
182 /* copy tif structure into l so that can be used by user program */
183 if (copy_to_user((void *)l, &tif, sizeof(tif))) {
184 printk("tpci: Unsuccessful copy_to_user of tif\n");