Lines Matching refs:buf

268 	char buf[1024];
270 memset(buf,0xFF,1024);
440 char *buf;
446 buf = (char *)__get_free_page(GFP_KERNEL);
447 if (!buf)
449 if (copy_from_user(buf, user_buf, count)) {
450 free_page((unsigned long) buf);
454 buf[count] = '\0';
455 strim(buf);
457 cptype = parse_cp_type(buf, count);
458 free_page((unsigned long) buf);
476 char *buf;
479 buf = (char *)__get_free_page(GFP_KERNEL);
481 n = snprintf(buf, PAGE_SIZE, "Available crash types:\n");
483 n += snprintf(buf + n, PAGE_SIZE - n, "%s\n", cp_type[i]);
484 buf[n] = '\0';
487 buf, n);
488 free_page((unsigned long) buf);
499 static ssize_t int_hardware_entry(struct file *f, const char __user *buf,
502 return do_register_entry(CN_INT_HARDWARE_ENTRY, f, buf, count, off);
505 static ssize_t int_hw_irq_en(struct file *f, const char __user *buf,
508 return do_register_entry(CN_INT_HW_IRQ_EN, f, buf, count, off);
511 static ssize_t int_tasklet_entry(struct file *f, const char __user *buf,
514 return do_register_entry(CN_INT_TASKLET_ENTRY, f, buf, count, off);
517 static ssize_t fs_devrw_entry(struct file *f, const char __user *buf,
520 return do_register_entry(CN_FS_DEVRW, f, buf, count, off);
523 static ssize_t mem_swapout_entry(struct file *f, const char __user *buf,
526 return do_register_entry(CN_MEM_SWAPOUT, f, buf, count, off);
529 static ssize_t timeradd_entry(struct file *f, const char __user *buf,
532 return do_register_entry(CN_TIMERADD, f, buf, count, off);
536 const char __user *buf, size_t count, loff_t *off)
538 return do_register_entry(CN_SCSI_DISPATCH_CMD, f, buf, count, off);
541 static ssize_t ide_core_cp_entry(struct file *f, const char __user *buf,
544 return do_register_entry(CN_IDE_CORE_CP, f, buf, count, off);
552 char *buf;
559 buf = (char *)__get_free_page(GFP_KERNEL);
560 if (!buf)
562 if (copy_from_user(buf, user_buf, count)) {
563 free_page((unsigned long) buf);
567 buf[count] = '\0';
568 strim(buf);
570 type = parse_cp_type(buf, count);
571 free_page((unsigned long) buf);