search for: devname

Displaying 20 results from an estimated 262 matches for "devname".

2015 Sep 09
1
[PATCH v1 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory leak, and ease of use in future as well Signed-off-by: Imran Zaman <imran.zaman at intel.com> --- extlinux/main.c | 48 ++++++++++++++++++++++++++++++++---------------- 1 file changed, 32 insertions(+), 16 deletions(-) diff --git a/extlinux/main...
2015 Sep 10
2
[PATCH v2 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory leak, and ease of use in future as well Signed-off-by: Imran Zaman <imran.zaman at intel.com> --- extlinux/main.c | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) diff --git a/extlinux/main.c b...
2015 Sep 09
0
[PATCH v1 1/1] extlinux: fix memory leak
devname is put on heap for all cases to avoid memory leak, and ease of use in future as well Signed-off-by: Imran Zaman <imran.zaman at intel.com> --- extlinux/main.c | 50 +++++++++++++++++++++++++++++++++----------------- 1 file changed, 33 insertions(+), 17 deletions(-) diff --git a/extlinux/ma...
2015 Sep 11
0
[PATCH v2 1/1] extlinux: fix memory leak
On Thu, 10 Sep 2015 10:55:04 +0300 Imran Zaman via Syslinux <syslinux at zytor.com> wrote: > devname is put on heap for all cases to avoid memory > leak, and ease of use in future as well > > Signed-off-by: Imran Zaman <imran.zaman at intel.com> Reviewed-by: Paulo Alcantara <pcacjr at zytor.com> Thanks, Paulo > --- > extlinux/main.c | 44 +++++++++++++++++++++++++++...
2010 Aug 13
4
[PATCH] xl: Make blktap support optional
Make blktap support optional. Enable it by default on Linux, disable it on non-Linux. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen,
2001 Oct 13
3
ttyS0 access
Until last week my wine runs a Microcontroler Programmer under serial port very well, But in this week have problems to work wine for serial ports on my new Mandrake 8.1. Well, in Mdk 8.1 there is no ttyS0 devices but links to /dev/tts/0 and /dev/tts/1 I realy don't remember how was until last week, but I think about users and perms to devices. I try to chmod a+rw for /dev/tts/0 and tts/1
2020 Jun 03
2
asterisk 16.9 function HINT with option n does not return anything
...documentation) CALLERID(name) of the extension (via extension's hint). Example configuration: pjsip.conf: [10] type=endopoint . . callerid = Test extension <10> . . extensions.conf: [exts] exten => 10,hint,PJSIP/10 exten => 10,1,Set(DEV=${HINT(10 at exts)}) exten => 10,n,Set(DEVNAME=${HINT(10 at exts,n)}) exten => 10,n,Noop(DEV is ${DEV}) exten => 10,n,Noop(DEVNAME is ${DEVNAME}) on asterisk 16.9.0: - first noop prints: DEV is PJSIP/10 - second noop prints: DEVNAME is Way I understand the documentation for function HINT, I would expect the DEVNAME variable to b...
2012 Nov 07
4
[PATCH 1/2] 4.1.2 blktap2 cleanup fixes.
...t tap_ctl_get_driver_id(const char *ha int tap_ctl_list(tap_list_t ***list); void tap_ctl_free_list(tap_list_t **list); -int tap_ctl_find_minor(const char *type, const char *path); +int tap_ctl_find(const char *type, const char *path, tap_list_t *tap); int tap_ctl_allocate(int *minor, char **devname); int tap_ctl_free(const int minor); diff -r 700d0f03d50a tools/libxl/libxl_blktap2.c --- a/tools/libxl/libxl_blktap2.c Mon Oct 29 09:04:48 2012 +0100 +++ b/tools/libxl/libxl_blktap2.c Tue Nov 06 19:52:48 2012 -0600 @@ -18,6 +18,8 @@ #include "tap-ctl.h" +#include <string.h> +...
2008 Jul 03
1
extlinux and install script
...quot;, "r")) ) { while ( (mnt = getmntent(mtab)) ) { if ( (!strcmp(mnt->mnt_type, "ext2") || !strcmp(mnt->mnt_type, "ext3")) && !stat(mnt->mnt_fsname, &dst) && dst.st_rdev == st.st_dev ) { devname = mnt->mnt_fsname; break; } } } if ( !devname ) { /* Didn't find it in /proc/mounts, try /etc/mtab */ if ( (mtab = setmntent("/etc/mtab", "r")) ) { while ( (mnt = getmntent(mtab)) ) { devname = mnt->mnt_fsname; break...
2009 Aug 03
1
[PATCH] Recognise cd-rom devices in devsparts.c
...ist */ + if (add_string (&r, &size, &alloc, NULL) == -1) { return NULL; } - sort_strings (r, size-1); return r; } @@ -88,76 +69,63 @@ do_list_partitions (void) { char **r = NULL; int size = 0, alloc = 0; - DIR *dir, *dir2; - struct dirent *d; - char buf[256], devname[256]; - dir = opendir ("/sys/block"); - if (!dir) { - reply_with_perror ("opendir: /sys/block"); - return NULL; - } + int find_partitions(const char *device) { + struct dirent *d; + char devdir[256]; - while ((d = readdir (dir)) != NULL) { - if (strncmp (...
2008 Jan 18
2
[PATCH 2/3] Make IRQ handlers typesafe.
...(irq), \ + check_either_type((handler), irq_handler_t, \ + int (*)(int, typeof(dev_id))), \ + (flags), (name), (dev_id)) +extern int __must_check __devm_request_irq(struct device *dev, unsigned int irq, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id); extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id); diff -r 0fe1a980708b include/linux/kernel.h --- a/include/linux/kernel.h Thu Jan 17 14:48:56 2008 +1100 +++ b/include/linux/kernel.h Thu Jan 17 15:42:01 2008 +1100 @@ -379,6 +379,13 @@ static inline int...
2008 Jan 18
2
[PATCH 2/3] Make IRQ handlers typesafe.
...(irq), \ + check_either_type((handler), irq_handler_t, \ + int (*)(int, typeof(dev_id))), \ + (flags), (name), (dev_id)) +extern int __must_check __devm_request_irq(struct device *dev, unsigned int irq, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id); extern void devm_free_irq(struct device *dev, unsigned int irq, void *dev_id); diff -r 0fe1a980708b include/linux/kernel.h --- a/include/linux/kernel.h Thu Jan 17 14:48:56 2008 +1100 +++ b/include/linux/kernel.h Thu Jan 17 15:42:01 2008 +1100 @@ -379,6 +379,13 @@ static inline int...
2011 Apr 27
2
Where is my qemu command?
...USB disk to a vm, but how? The command "qemu" would provide a way: [root at a134-224 yum.repos.d]# man qemu-kvm > QEMU(1) > NAME > qemu-doc - QEMU Emulator User Documentation > > SYNOPSIS > usage: qemu [options] [disk_image] (...) > -usbdevice devname > Add the USB device devname. But when I try it: [root at a134-224 yum.repos.d]# qemu start -usbdevice host:059f:1018 mail -bash: qemu: command not found That command syntax is probably ot right yet, but the main question is, where is qemu? I was tempted to yum-install qemu from...
2008 Mar 10
12
[RFC][PATCH] Use ioemu block drivers through blktap
When I submitted the qcow2 patch for blktap, suggestions came up that the qemu block drivers should be used also for blktap to eliminate the current code duplication in ioemu and blktap. The attached patch adds support for a tap:ioemu pseudo driver. Devices using this driver won''t use tapdisk (containing the code duplication) any more, but will connect to the qemu-dm of the domain. In
2011 Jul 12
0
[PATCH]: Use a general way to get the default subvolume for btrfs
...- *tmp = '\0'; - } - break; /* should break and let upper layer try again */ - } else + if (!subvol[0]) { + get_default_subvol(mnt->mnt_dir, subvol); + } done = true; } break; @@ -623,24 +876,10 @@ static const char *get_devname(const char *path) #else - /* check /etc/mtab first, since btrfs subvol info is only in here */ - devname = find_device("/etc/mtab", st.st_dev); - if (subvol[0] && !devname) { /* we just find it is a btrfs subvol */ - char parent[256]; - char *tmp; - - strcpy(parent,...
2011 Sep 21
1
[PATCH] libxl: attempt to cleanup tapdisk processes on disk backend destroy
...t tap_ctl_get_driver_id(const char *ha int tap_ctl_list(tap_list_t ***list); void tap_ctl_free_list(tap_list_t **list); -int tap_ctl_find_minor(const char *type, const char *path); +int tap_ctl_find(const char *type, const char *path, tap_list_t *tap); int tap_ctl_allocate(int *minor, char **devname); int tap_ctl_free(const int minor); diff -r 206afa070919 -r b43fd821d1ae tools/libxl/libxl_blktap2.c --- a/tools/libxl/libxl_blktap2.c Wed Sep 21 13:59:24 2011 +0100 +++ b/tools/libxl/libxl_blktap2.c Wed Sep 21 13:59:24 2011 +0100 @@ -18,6 +18,8 @@ #include "tap-ctl.h" +#include &l...
2011 Apr 27
2
btrfs-convert crashes
...able. #6 0x00007ffff7bbac02 in ext2fs_block_iterate2 () from /lib/x86_64-linux-gnu/libext2fs.so.2 No symbol table info available. #7 0x00007ffff7bbdfb8 in ext2fs_dir_iterate2 () from /lib/x86_64-linux-gnu/libext2fs.so.2 No symbol table info available. #8 0x000000000041689d in create_dir_entries (devname=0x7fffffffe897 "/dev/sdc1", datacsum=1, packing=1, noxattr=0) at convert.c:322 err =<value optimized out> data = {trans = 0xc9ef10, root = 0x633920, inode = 0x7fffffffe1c0, objectid = 37359706, index_cnt = 150, parent = 37359705, errcode = 0} ret =<valu...
2013 Apr 11
2
[PATCH 1/2] btrfs-progs: replace blkid_probe_get_wholedisk_devno
...es on older systems. Signed-off-by: Eric Sandeen <sandeen@redhat.com> --- diff --git a/mkfs.c b/mkfs.c index c8cb395..7df78fc 100644 --- a/mkfs.c +++ b/mkfs.c @@ -1215,9 +1215,8 @@ static int check_leaf_or_node_size(u32 size, u32 sectorsize) static int is_ssd(const char *file) { - char *devname; blkid_probe probe; - char *dev; + char dev[32]; char path[PATH_MAX]; dev_t disk; int fd; @@ -1227,24 +1226,16 @@ static int is_ssd(const char *file) if (!probe) return 0; - /* - * We want to use blkid_devno_to_wholedisk() but it''s broken for some - * reason on F17 at leas...
2012 Jan 11
5
[PATCH] vhost-net: add module alias
...c int vhost_net_init(void) @@ -879,3 +879,5 @@ MODULE_VERSION("0.0.1"); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Michael S. Tsirkin"); MODULE_DESCRIPTION("Host kernel accelerator for virtio net"); +MODULE_ALIAS_MISCDEV(VHOST_NET_MINOR); +MODULE_ALIAS("devname:vhost-net"); --- a/include/linux/miscdevice.h 2012-01-10 10:56:59.779189436 -0800 +++ b/include/linux/miscdevice.h 2012-01-10 19:49:56.091748210 -0800 @@ -31,6 +31,7 @@ #define I2O_MINOR 166 #define MICROCODE_MINOR 184 #define TUN_MINOR 200 +#define VHOST_NET_MINOR 201 #define MWAVE_MI...
2012 Jan 11
5
[PATCH] vhost-net: add module alias
...c int vhost_net_init(void) @@ -879,3 +879,5 @@ MODULE_VERSION("0.0.1"); MODULE_LICENSE("GPL v2"); MODULE_AUTHOR("Michael S. Tsirkin"); MODULE_DESCRIPTION("Host kernel accelerator for virtio net"); +MODULE_ALIAS_MISCDEV(VHOST_NET_MINOR); +MODULE_ALIAS("devname:vhost-net"); --- a/include/linux/miscdevice.h 2012-01-10 10:56:59.779189436 -0800 +++ b/include/linux/miscdevice.h 2012-01-10 19:49:56.091748210 -0800 @@ -31,6 +31,7 @@ #define I2O_MINOR 166 #define MICROCODE_MINOR 184 #define TUN_MINOR 200 +#define VHOST_NET_MINOR 201 #define MWAVE_MI...