mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: advice
@ 2005-09-04  0:43 YH
  0 siblings, 0 replies; 2+ messages in thread
From: YH @ 2005-09-04  0:43 UTC (permalink / raw)
  To: Linux Kernel Mailing List

Hello,

Apologize for off topic questions. While I am working on a device driver 
in kernel 2.4.21, I need advices from kernel developers.

1. When the read() or write() is called from user applications, the 
driver can either have a static buffer with limited size or dynamic 
memory allocation (kmalloc).

The static buffer is simple and reliable, but limited buffer size to 
applications.

Personally, I would like to use dynamic kernel memory allocation 
(kmalloc), the question is whether it could be any issues (reliability) 
to frequently call kmalloc / kfree in a high speed device (100mpbs)?

2. Although there is a mechanism for user applications to access the 
driver through function call read(), write(), or ioctl(). Can the 
application passes a callback pointer to the driver in kernel space so 
that the driver can call the callback function when some special event 
is received. Or if there is a mechanism to let the driver to send a 
notification to the user application?

Thank you and appreciate your helps.

Jim


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Advice
@ 2003-06-24 19:45 Mr ken Titoh
  0 siblings, 0 replies; 2+ messages in thread
From: Mr ken Titoh @ 2003-06-24 19:45 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

Dear Sir,
I am  Mr Ken Titoh, I represent the members of
contract award committee of my country, Nigeria.
We managed to deposit the sum of $25 million in the
vault of Citi Bank of America (local branch).
These funds was acquired as gratification from various
contractors we have assisted in getting contracts.
This fund was deposited without any account as a
result of civil service code, which does not allow us
to operate foreign account. I'm asking for your
assistance as a foreign partner to move this fund from
the vault of Citi Bank to your account, with you asthe beneficiary.
I will also need your assistance in the investment of
most of our share of the funds in your country,
in profitable areas of interest to us, especially
computer soft and hard wares. This is due fordiscussion as soon as we meet.
COMMISSION! You will be entitled to 15% of the total funds for
your assistance. If you are interested contact me
immediately through e-mail to let you know how to make
applications to the director of wire transfer of Citibank  for immediate transfer of the funds to your nominated account.

Regards

Mr ken Titoh

[-- Attachment #2: add_4.txt --]
[-- Type: application/octet-stream, Size: 147 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-04  0:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-04  0:43 advice YH
  -- strict thread matches above, loose matches on Subject: below --
2003-06-24 19:45 Advice Mr ken Titoh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®