Displaying 20 results from an estimated 24 matches for "open_devices".
Did you mean:
open_device
2013 Mar 13
0
[LLVMdev] Linkage question
Hi,
We are new in LLVM...
We want to execute JIT'ed code that links to functions inside our
application
For example, the JIT has compiled code like
extern void open_device(Device * dev);
int foo_bar() { Device dev; ... ; open_device(&dev); ...;}
/
/where open_device() is a function in our own code, that
has initialized and called the ExecutionEngine.
Of course when running we get the
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/extlinux/main.c
index 55a1495..b7cdf92 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@
2013 Mar 13
2
[LLVMdev] Linkage question
Hi Vania,
If I understood correctly, you have an executable, which is JITing code
that has dependencies on the symbols of entire executable. In case dlsym
cannot find this symbol, try to link your executable with -rdynamic (gcc)
or --export-dynamic (ld):
-rdynamic
Pass the flag -export-dynamic to the ELF linker, on targets that
support it. This instructs the linker
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.c b/extlinux/main.c
index 55a1495..7bb7443 100644
--- a/extlinux/main.c
+++
2013 Mar 12
4
[LLVMdev] LNT BenchmarkGame
On Tue, Mar 12, 2013 at 9:19 AM, Renato Golin <renato.golin at linaro.org>wrote:
> On 12 March 2013 15:28, Hal Finkel <hfinkel at anl.gov> wrote:
>
>> Can't we just paste in a RNG so that we'll get the same output on all
>> systems (and can still use the reference output)?
>>
>
> We can, though other tests suffer from the same issue. Would be good
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
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/main.c b/extlinux/main.c
index bc7ded3..74f8d1f 100644
--- a/extlinux/main.c
+++
2013 Mar 13
0
[LLVMdev] Linkage question
On 03/13/2013 11:01 AM, Dmitry Mikushin wrote:
> Hi Vania,
>
> If I understood correctly, you have an executable, which is JITing
> code that has dependencies on the symbols of entire executable. In
> case dlsym cannot find this symbol, try to link your executable with
> -rdynamic (gcc) or --export-dynamic (ld):
>
> -rdynamic
> Pass the flag
2001 Jan 02
0
ogg123: close_dsp_on_suspend and next_on_SIGUSR1 patches submission
...ri Dec 29 07:55:25 2000
@@ -27,6 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <signal.h>
#include <sys/socket.h> /* !!! */
#include <sys/types.h>
#include <unistd.h>
@@ -198,6 +199,57 @@
return -1;
}
+void
+open_devices(void)
+{
+ int bits, rate, channels;
+ devices *current;
+
+ /* Open all of the devices */
+ bits = 16;
+ rate = 44100;
+ channels = 2;
+ current = param.outdevices;
+
+ if (param.quiet < 1)
+ fprintf(stderr, "Opening devices...\n");
+
+ while (current != NULL) {
+ ao_inf...
2011 Apr 20
4
[PATCH 1/5] Btrfs: fix bh leak on __btrfs_open_devices path
...ngrong <xiaoguangrong@cn.fujitsu.com>
---
fs/btrfs/volumes.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index 8b9fb8c..69fc902 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -631,6 +631,7 @@ static int __btrfs_open_devices(struct btrfs_fs_devices *fs_devices,
list_add(&device->dev_alloc_list,
&fs_devices->alloc_list);
}
+ brelse(bh);
continue;
error_brelse:
--
1.7.4.4
2014 Dec 24
0
[PATCH 1/8] extlinux/main.c: support unmounted ext2/3/4 filesystem
Add install_file_to_device() to support unmounted ext2, ext3 and ext4
filesystem.
Usage:
$ extlinux -i /dev/sdXN
or
$ extlinux -i file_block
We don't need any new options, it will check whether the target is a
directory or device and decide what to do, it would stop and error if
the device is mounted.
More info:
* It will use libext2fs to read and write the file.
* It will be used when the
2015 Nov 12
1
[PATCH] Unification of ext_(write/read)_adv
Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
---
extlinux/main.c | 44 ++++++++++++++++++++++----------------------
1 file changed, 22 insertions(+), 22 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 6871fb1..385b364 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -1415,21 +1415,12 @@ static int open_device(const char *path, struct stat *st, char
2015 Nov 13
4
[PATCH] extlinux: code cleanup and simplification
Merge btrfs_read_adv and xfs_read_adv into a single generic function
ext_read_adv and split ext_write_adv_offset out of ext_write_adv.
Use those new functions in rewrite_boot_image and btrfs_install_file
where it is actually hardcoded.
Signed-off-by: Nicolas Cornu <nicolac76 at yahoo.fr>
---
extlinux/main.c | 113 +++++++++++++++++++++++++++-----------------------------
1 file changed, 55
2015 Nov 15
0
[PATCH] extlinux/main.c: space chance
Spaces, ASCII 0x20, have been
* moved
* inserted
* deleted
Signed-off-by: Geert Stappers <stappers at stappers.nl>
---
extlinux/main.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/extlinux/main.c b/extlinux/main.c
index 26eb43c..ed359f1 100644
--- a/extlinux/main.c
+++ b/extlinux/main.c
@@ -393,11 +393,11 @@ int install_bootblock(int fd,
2015 Nov 18
0
[PATCH] extlinux: code cleanup and simplification
2015-11-13 20:35 UTC+01:00, Nicolas Cornu via Syslinux <syslinux at zytor.com>:
> Merge btrfs_read_adv and xfs_read_adv into a single generic function
> ext_read_adv and split ext_write_adv_offset out of ext_write_adv.
>
> Use those new functions in rewrite_boot_image and btrfs_install_file
> where it is actually hardcoded.
>
> Signed-off-by: Nicolas Cornu <nicolac76
2015 Nov 26
0
[syslinux:master] extlinux: code cleanup and simplification
Commit-ID: 82c0ec7b39acb87175ea588f2fa11b21331503c4
Gitweb: http://www.syslinux.org/commit/82c0ec7b39acb87175ea588f2fa11b21331503c4
Author: Nicolas Cornu via Syslinux <syslinux at zytor.com>
AuthorDate: Fri, 13 Nov 2015 20:35:29 +0100
Committer: Paulo Alcantara <pcacjr at zytor.com>
CommitDate: Wed, 25 Nov 2015 21:58:23 -0200
extlinux: code cleanup and simplification
Merge
2015 Nov 18
1
[PATCH] extlinux: code cleanup and simplification
Right sorry for that ;)
Le Mercredi 18 novembre 2015 7h31, Celelibi <celelibi at gmail.com> a ?crit :
2015-11-13 20:35 UTC+01:00, Nicolas Cornu via Syslinux <syslinux at zytor.com>:
> Merge btrfs_read_adv and xfs_read_adv into a single generic function
> ext_read_adv and split ext_write_adv_offset out of ext_write_adv.
>
> Use those new functions in
2015 Nov 15
4
[patch] 6.03 extlinux/main.c typos
On Fri, Nov 13, 2015 at 06:14:36AM +0100, Geert Stappers via Syslinux wrote:
> On Fri, Nov 13, 2015 at 05:05:26AM +0200, Ady via Syslinux wrote:
> > diff U3 syslinux-6.03/extlinux/main.c syslinux-6.03_typo/extlinux/main.c
> > --- syslinux-6.03/extlinux/main.c Mon Oct 06 16:27:44 2014
> > +++ syslinux-6.03_typo/extlinux/main.c Fri Nov 13 02:29:56 2015
>
> patch seen
>
2014 Dec 24
14
[PATCH 0/8] extlinux: support unmounted ext2/3/4 filesystem
Hello syslinux,
Merry Christmas! These patches will make extlinux work with umounted
ext2/3/4 filesystem, for example:
$ extlinux -i /dev/sdXN
or
$ extlinux -i file_block
Also it can work with something like:
$ extlinux /dev/sdXN --reset-adv
or
$ extlinux file_block --reset-adv
We don't use a new option (I planed to use "-d" but it is already in
use), it will check whether the
2013 Jul 22
1
[PATCH 1/1 v2] Add UFS1/2 support to Extlinux installer.
It's needed to enumerate both UFS1/2 since they have different magic numbers
and super block offsets.
Besides, UFS2 can be installed in the 0-64k range like BTRFS, whereas
UFS1 can't. UFS2 has no cow feature unlike BTRFS.
Signed-off-by: Raphael S.Carvalho <raphael.scarv at gmail.com>
---
extlinux/main.c | 79 ++++++++++---
extlinux/ufs.h | 26 ++++